Skip to content

Commit

Permalink
fix original_language interfering with no language preferences
Browse files Browse the repository at this point in the history
  • Loading branch information
mdhiggins committed Nov 4, 2023
1 parent ced493e commit 076bbdd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/mediaprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ def safeLanguage(self, info, tagdata=None):
if self.settings.audio_original_language and tagdata:
try:
original_language = tagdata.original_language
if original_language not in awl:
if awl and original_language not in awl:
self.log.debug("Appending %s to allowed audio languages [include-original-language]." % (original_language))
awl.append(original_language)
self.settings.adl = self.settings.adl or original_language
Expand Down

1 comment on commit 076bbdd

@mdhiggins
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes #1686

Please sign in to comment.