From c982e37024166ce7a80e2f9456dea1e8c9f36192 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sun, 22 Mar 2020 09:23:06 -0400 Subject: [PATCH] Fix to embedded subs indexer. --- bazarr/embedded_subs_reader.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bazarr/embedded_subs_reader.py b/bazarr/embedded_subs_reader.py index dd1e72d43..8a2f12e86 100644 --- a/bazarr/embedded_subs_reader.py +++ b/bazarr/embedded_subs_reader.py @@ -26,10 +26,10 @@ class EmbeddedSubsReader: if 'subtitle' in data: for detected_language in data['subtitle']: - language = detected_language['language'].alpha3 - forced = detected_language['forced'] if 'forced' in detected_language else None - codec = detected_language['format'] if 'format' in detected_language else None - if language: + if 'language' in detected_language: + language = detected_language['language'].alpha3 + forced = detected_language['forced'] if 'forced' in detected_language else None + codec = detected_language['format'] if 'format' in detected_language else None subtitles_list.append([language, forced, codec]) else: continue