diff --git a/bazarr/config.py b/bazarr/config.py index 216e8fc48..462491710 100644 --- a/bazarr/config.py +++ b/bazarr/config.py @@ -55,6 +55,7 @@ defaults = { 'utf8_encode': 'True', 'ignore_pgs_subs': 'False', 'ignore_vobsub_subs': 'False', + 'ignore_ass_subs': 'False', 'adaptive_searching': 'False', 'enabled_providers': '[]', 'multithreading': 'True', diff --git a/bazarr/list_subtitles.py b/bazarr/list_subtitles.py index 4a03d0cec..061f86d14 100644 --- a/bazarr/list_subtitles.py +++ b/bazarr/list_subtitles.py @@ -40,7 +40,9 @@ def store_subtitles(original_path, reversed_path): try: if (settings.general.getboolean("ignore_pgs_subs") and subtitle_codec.lower() == "pgs") or \ (settings.general.getboolean("ignore_vobsub_subs") and subtitle_codec.lower() == - "vobsub"): + "vobsub") or \ + (settings.general.getboolean("ignore_ass_subs") and subtitle_codec.lower() == + "ass"): logging.debug("BAZARR skipping %s sub for language: %s" % (subtitle_codec, alpha2_from_alpha3(subtitle_language))) continue @@ -158,7 +160,9 @@ def store_subtitles_movie(original_path, reversed_path): try: if (settings.general.getboolean("ignore_pgs_subs") and subtitle_codec.lower() == "pgs") or \ (settings.general.getboolean("ignore_vobsub_subs") and subtitle_codec.lower() == - "vobsub"): + "vobsub") or \ + (settings.general.getboolean("ignore_ass_subs") and subtitle_codec.lower() == + "ass"): logging.debug("BAZARR skipping %s sub for language: %s" % (subtitle_codec, alpha2_from_alpha3(subtitle_language))) continue diff --git a/frontend/src/Settings/Subtitles/index.tsx b/frontend/src/Settings/Subtitles/index.tsx index 25dd2793c..66ddbd2e3 100644 --- a/frontend/src/Settings/Subtitles/index.tsx +++ b/frontend/src/Settings/Subtitles/index.tsx @@ -176,6 +176,15 @@ const SettingsSubtitlesView: FunctionComponent = () => { Ignores VobSub Subtitles in Embedded Subtitles detection. + + + + Ignores ASS Subtitles in Embedded Subtitles detection. + +