mirror of
https://github.com/morpheus65535/bazarr
synced 2025-02-23 14:31:06 +00:00
Fixed other issues with subzero_mods parsing. #2276
This commit is contained in:
parent
db8e4d43b4
commit
5234565f84
2 changed files with 4 additions and 4 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in a new issue