Added settings to ignore ASS embedded subtitles

pull/1402/head
morpheus65535 4 years ago
parent 0f9ec102b7
commit 3d7b532cb6

@ -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',

@ -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

@ -176,6 +176,15 @@ const SettingsSubtitlesView: FunctionComponent = () => {
Ignores VobSub Subtitles in Embedded Subtitles detection.
</Message>
</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"

Loading…
Cancel
Save