Fixed subtitles naming when saving subtitles to prevent parsing for HI content if the provider (or the user if it's an upload) specifies that it should be considered as HI. #2719

pull/2726/head v1.4.6-beta.5
morpheus65535 1 month ago
parent 16499fc674
commit 5139fca5b8

@ -1217,7 +1217,8 @@ def save_subtitles(file_path, subtitles, single=False, directory=None, chmod=Non
continue
# create subtitle path
if (subtitle.text and subtitle.format == 'srt' and
if (subtitle.text and subtitle.format == 'srt' and (hasattr(subtitle.language, 'hi') and
not subtitle.language.hi) and
parse_for_hi_regex(subtitle_text=subtitle.text, alpha3_language=subtitle.language.alpha3 if
(hasattr(subtitle, 'language') and hasattr(subtitle.language, 'alpha3')) else None)):
subtitle.language.hi = True

Loading…
Cancel
Save