From d95cb407cb36ba93dfc737ae78042343f58b284f Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Fri, 16 Oct 2020 22:20:37 +1300 Subject: [PATCH] no_status_check prevents additional checks. #1192 --- core/auto_process/movies.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/core/auto_process/movies.py b/core/auto_process/movies.py index 4fe2d258..52ddafbf 100644 --- a/core/auto_process/movies.py +++ b/core/auto_process/movies.py @@ -387,6 +387,12 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual', if not release: download_id = None # we don't want to filter new releases based on this. + if no_status_check: + return ProcessResult( + status_code=0, + message='{0}: Successfully processed but no change in status confirmed'.format(section), + ) + # we will now check to see if CPS has finished renaming before returning to TorrentToMedia and unpausing. timeout = time.time() + 60 * wait_for while time.time() < timeout: # only wait 2 (default) minutes, then return. @@ -466,11 +472,7 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual', '{0} does not appear to have changed status after {1} minutes, Please check your logs.'.format(input_name, wait_for), section, ) - if no_status_check: - return ProcessResult( - status_code=0, - message='{0}: Successfully processed but no change in status confirmed'.format(section), - ) + return ProcessResult( status_code=1, message='{0}: Failed to post-process - No change in status'.format(section),