|
|
@ -36,7 +36,7 @@ def store_subtitles(original_path, reversed_path):
|
|
|
|
subtitle_languages = embedded_subs_reader.list_languages(reversed_path)
|
|
|
|
subtitle_languages = embedded_subs_reader.list_languages(reversed_path)
|
|
|
|
for subtitle_language, subtitle_forced, subtitle_codec in subtitle_languages:
|
|
|
|
for subtitle_language, subtitle_forced, subtitle_codec in subtitle_languages:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
if settings.general.getboolean("ignore_pgs_subs") and subtitle_codec == "hdmv_pgs_subtitle":
|
|
|
|
if settings.general.getboolean("ignore_pgs_subs") and subtitle_codec == "PGS":
|
|
|
|
logging.debug("BAZARR skipping pgs sub for language: " + str(alpha2_from_alpha3(subtitle_language)))
|
|
|
|
logging.debug("BAZARR skipping pgs sub for language: " + str(alpha2_from_alpha3(subtitle_language)))
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
@ -112,7 +112,7 @@ def store_subtitles_movie(original_path, reversed_path):
|
|
|
|
subtitle_languages = embedded_subs_reader.list_languages(reversed_path)
|
|
|
|
subtitle_languages = embedded_subs_reader.list_languages(reversed_path)
|
|
|
|
for subtitle_language, subtitle_forced, subtitle_codec in subtitle_languages:
|
|
|
|
for subtitle_language, subtitle_forced, subtitle_codec in subtitle_languages:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
if settings.general.getboolean("ignore_pgs_subs") and subtitle_codec == "hdmv_pgs_subtitle":
|
|
|
|
if settings.general.getboolean("ignore_pgs_subs") and subtitle_codec == "PGS":
|
|
|
|
logging.debug("BAZARR skipping pgs sub for language: " + str(alpha2_from_alpha3(subtitle_language)))
|
|
|
|
logging.debug("BAZARR skipping pgs sub for language: " + str(alpha2_from_alpha3(subtitle_language)))
|
|
|
|
continue
|
|
|
|
continue
|
|
|
|
|
|
|
|
|
|
|
|