diff options
author | morpheus65535 <[email protected]> | 2021-05-06 09:18:40 -0400 |
---|---|---|
committer | morpheus65535 <[email protected]> | 2021-05-06 09:18:40 -0400 |
commit | 3d7b532cb6747f5b8d946e42a70f350303a2270f (patch) | |
tree | 8c63346e552fb4aa28096142567e549d3f6302d4 | |
parent | 0f9ec102b75da5adef413d7c73d7c3447b614790 (diff) | |
download | bazarr-3d7b532cb6747f5b8d946e42a70f350303a2270f.tar.gz bazarr-3d7b532cb6747f5b8d946e42a70f350303a2270f.zip |
Added settings to ignore ASS embedded subtitles
-rw-r--r-- | bazarr/config.py | 1 | ||||
-rw-r--r-- | bazarr/list_subtitles.py | 8 | ||||
-rw-r--r-- | frontend/src/Settings/Subtitles/index.tsx | 9 |
3 files changed, 16 insertions, 2 deletions
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 @@ -178,6 +178,15 @@ const SettingsSubtitlesView: FunctionComponent = () => { </Input> <Input> <Check + label="Ignore Embedded ASS Subtitles" + settingKey="settings-general-ignore_ass_subs" + ></Check> + <Message> + Ignores ASS Subtitles in Embedded Subtitles detection. + </Message> + </Input> + <Input> + <Check label="Show Only Desired Languages" settingKey="settings-general-embedded_subs_show_desired" ></Check> |