From 5234565f847123b03d6a73df2f0ebaad2f598315 Mon Sep 17 00:00:00 2001 From: morpheus65535 Date: Wed, 25 Oct 2023 17:05:01 -0400 Subject: [PATCH] Fixed other issues with subzero_mods parsing. #2276 --- bazarr/subtitles/manual.py | 4 ++-- bazarr/subtitles/upload.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bazarr/subtitles/manual.py b/bazarr/subtitles/manual.py index 7fd91dd33..05dbaba8a 100644 --- a/bazarr/subtitles/manual.py +++ b/bazarr/subtitles/manual.py @@ -14,7 +14,7 @@ from subliminal_patch.core_persistent import list_all_subtitles, download_subtit from subliminal_patch.score import ComputeScore from languages.get_languages import alpha3_from_alpha2 -from app.config import get_scores, settings +from app.config import get_scores, settings, get_array_from from utilities.helper import get_target_folder, force_unicode from app.database import get_profiles_list @@ -174,7 +174,7 @@ def manual_download_subtitle(path, audio_language, hi, forced, subtitle, provide subtitle.language.forced = False if use_original_format == 'True': subtitle.use_original_format = use_original_format - subtitle.mods = settings.general.subzero_mods + subtitle.mods = get_array_from(settings.general.subzero_mods) video = get_video(force_unicode(path), title, sceneName, providers={provider}, media_type=media_type) if video: try: diff --git a/bazarr/subtitles/upload.py b/bazarr/subtitles/upload.py index 103ec01ff..998e63c21 100644 --- a/bazarr/subtitles/upload.py +++ b/bazarr/subtitles/upload.py @@ -11,7 +11,7 @@ from subliminal_patch.subtitle import Subtitle from pysubs2.formats import get_format_identifier from languages.get_languages import language_from_alpha3, alpha2_from_alpha3, alpha3_from_alpha2 -from app.config import settings +from app.config import settings, get_array_from from utilities.helper import get_target_folder, force_unicode from utilities.post_processing import pp_replace, set_chmod from utilities.path_mappings import path_mappings @@ -78,7 +78,7 @@ def manual_upload_subtitle(path, language, forced, hi, media_type, subtitle, aud sub = Subtitle( lang_obj, - mods=settings.general.subzero_mods, + mods=get_array_from(settings.general.subzero_mods), original_format=use_original_format )