mirror of
https://github.com/morpheus65535/bazarr.git
synced 2025-01-11 09:17:47 +08:00
Fix for unknown language
This commit is contained in:
parent
0209d1558a
commit
98b1400863
1 changed files with 1 additions and 1 deletions
|
@ -155,7 +155,7 @@ def store_subtitles_movie(original_path, reversed_path):
|
||||||
elif str(os.path.splitext(subtitle)[0]).lower().endswith(tuple(brazilian_portuguese_forced)):
|
elif str(os.path.splitext(subtitle)[0]).lower().endswith(tuple(brazilian_portuguese_forced)):
|
||||||
logging.debug("BAZARR external subtitles detected: " + "pb:forced")
|
logging.debug("BAZARR external subtitles detected: " + "pb:forced")
|
||||||
actual_subtitles.append([str("pb:forced"), path_mappings.path_replace_reverse_movie(subtitle_path)])
|
actual_subtitles.append([str("pb:forced"), path_mappings.path_replace_reverse_movie(subtitle_path)])
|
||||||
elif not language.basename:
|
elif not language:
|
||||||
continue
|
continue
|
||||||
elif str(language.basename) != 'und':
|
elif str(language.basename) != 'und':
|
||||||
logging.debug("BAZARR external subtitles detected: " + str(language.basename))
|
logging.debug("BAZARR external subtitles detected: " + str(language.basename))
|
||||||
|
|
Loading…
Reference in a new issue