Fix for unknown language

This commit is contained in:
Louis Vézina 2020-09-15 08:09:05 -04:00
parent 98b1400863
commit 0af655398d
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ def store_subtitles(original_path, reversed_path):
logging.debug("BAZARR external subtitles detected: " + "pb:forced")
actual_subtitles.append(
[str("pb:forced"), path_mappings.path_replace_reverse(subtitle_path)])
elif not language.basename:
elif not language:
continue
elif str(language.basename) != 'und':
logging.debug("BAZARR external subtitles detected: " + str(language.basename))