From c630cdda3de4fab9c22041c360e08eb053ae3db1 Mon Sep 17 00:00:00 2001 From: panni Date: Wed, 27 Feb 2019 22:14:22 +0100 Subject: [PATCH] update subliminal_patch --- libs/subliminal_patch/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/subliminal_patch/core.py b/libs/subliminal_patch/core.py index 9fe8587d9..16e8f22c0 100644 --- a/libs/subliminal_patch/core.py +++ b/libs/subliminal_patch/core.py @@ -600,7 +600,7 @@ def _search_external_subtitles(path, languages=None, only_one=False, scandir_gen logger.error('Cannot parse language code %r', language_code) language = None - if not language and only_one: + elif not language_code and only_one: language = Language.rebuild(list(languages)[0], forced=forced) subtitles[p] = language