From 98b1400863da531955397e25c575d4a68439ba83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 15 Sep 2020 08:08:12 -0400 Subject: [PATCH] Fix for unknown language --- bazarr/list_subtitles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr/list_subtitles.py b/bazarr/list_subtitles.py index 9138aadde..9e41acd00 100644 --- a/bazarr/list_subtitles.py +++ b/bazarr/list_subtitles.py @@ -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)): logging.debug("BAZARR external subtitles detected: " + "pb:forced") actual_subtitles.append([str("pb:forced"), path_mappings.path_replace_reverse_movie(subtitle_path)]) - elif not language.basename: + elif not language: continue elif str(language.basename) != 'und': logging.debug("BAZARR external subtitles detected: " + str(language.basename))