|
|
|
@ -13,7 +13,7 @@ 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, get_array_from
|
|
|
|
|
from utilities.helper import get_target_folder, force_unicode
|
|
|
|
|
from utilities.post_processing import pp_replace
|
|
|
|
|
from utilities.post_processing import pp_replace, set_chmod
|
|
|
|
|
from utilities.path_mappings import path_mappings
|
|
|
|
|
from radarr.notify import notify_radarr
|
|
|
|
|
from sonarr.notify import notify_sonarr
|
|
|
|
@ -152,6 +152,7 @@ def manual_upload_subtitle(path, language, forced, hi, media_type, subtitle, aud
|
|
|
|
|
uploaded_language_code3, audio_language['name'], audio_language['code2'],
|
|
|
|
|
audio_language['code3'], 100, "1", "manual", series_id, episode_id)
|
|
|
|
|
postprocessing(command, path)
|
|
|
|
|
set_chmod(subtitles_path=subtitle_path)
|
|
|
|
|
|
|
|
|
|
if media_type == 'series':
|
|
|
|
|
reversed_path = path_mappings.path_replace_reverse(path)
|
|
|
|
|