Add subs renaming for radarr/sonarr (#1824)

* Re-added rename_subs #1823 #768
This commit is contained in:
Clinton Hall 2021-04-10 19:37:32 +12:00 committed by GitHub
commit e3efbdbaee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 63 additions and 2 deletions

View file

@ -21,7 +21,7 @@ from core.auto_process.common import (
completed_download_handling,
)
from core.plugins.downloaders.nzb.utils import report_nzb
from core.plugins.subtitles import import_subs
from core.plugins.subtitles import import_subs, rename_subs
from core.scene_exceptions import process_all_exceptions
from core.utils import (
convert_to_ascii,
@ -130,6 +130,7 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
num_files += 1
if transcoder.is_video_good(video, status):
import_subs(video)
rename_subs(dir_name)
good_files += 1
if num_files and good_files == num_files:
if status: