From 3564aff825d7f1dc43844801919c8fd0370a11c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Tue, 4 Aug 2020 20:30:28 -0400 Subject: [PATCH] Fix for #1038. --- bazarr/list_subtitles.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bazarr/list_subtitles.py b/bazarr/list_subtitles.py index e2082ee84..9f654eeb2 100644 --- a/bazarr/list_subtitles.py +++ b/bazarr/list_subtitles.py @@ -30,7 +30,9 @@ def store_subtitles(original_path, reversed_path): subtitle_languages = embedded_subs_reader.list_languages(reversed_path) for subtitle_language, subtitle_forced, subtitle_codec in subtitle_languages: try: - if (settings.general.getboolean("ignore_pgs_subs") and subtitle_codec == "PGS") or (settings.general.getboolean("ignore_vobsub_subs") and subtitle_codec == "VOBSUB"): + if (settings.general.getboolean("ignore_pgs_subs") and subtitle_codec.lower() == "pgs") or \ + (settings.general.getboolean("ignore_vobsub_subs") and subtitle_codec.lower() == + "vobsub"): logging.debug("BAZARR skipping %s sub for language: %s" % (subtitle_codec, alpha2_from_alpha3(subtitle_language))) continue @@ -106,7 +108,9 @@ def store_subtitles_movie(original_path, reversed_path): subtitle_languages = embedded_subs_reader.list_languages(reversed_path) for subtitle_language, subtitle_forced, subtitle_codec in subtitle_languages: try: - if (settings.general.getboolean("ignore_pgs_subs") and subtitle_codec == "PGS") or (settings.general.getboolean("ignore_vobsub_subs") and subtitle_codec == "VOBSUB"): + if (settings.general.getboolean("ignore_pgs_subs") and subtitle_codec.lower() == "pgs") or \ + (settings.general.getboolean("ignore_vobsub_subs") and subtitle_codec.lower() == + "vobsub"): logging.debug("BAZARR skipping %s sub for language: %s" % (subtitle_codec, alpha2_from_alpha3(subtitle_language))) continue