mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
parent
de81037d15
commit
d95cb407cb
1 changed files with 7 additions and 5 deletions
|
@ -387,6 +387,12 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
|
||||||
if not release:
|
if not release:
|
||||||
download_id = None # we don't want to filter new releases based on this.
|
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.
|
# we will now check to see if CPS has finished renaming before returning to TorrentToMedia and unpausing.
|
||||||
timeout = time.time() + 60 * wait_for
|
timeout = time.time() + 60 * wait_for
|
||||||
while time.time() < timeout: # only wait 2 (default) minutes, then return.
|
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),
|
'{0} does not appear to have changed status after {1} minutes, Please check your logs.'.format(input_name, wait_for),
|
||||||
section,
|
section,
|
||||||
)
|
)
|
||||||
if no_status_check:
|
|
||||||
return ProcessResult(
|
|
||||||
status_code=0,
|
|
||||||
message='{0}: Successfully processed but no change in status confirmed'.format(section),
|
|
||||||
)
|
|
||||||
return ProcessResult(
|
return ProcessResult(
|
||||||
status_code=1,
|
status_code=1,
|
||||||
message='{0}: Failed to post-process - No change in status'.format(section),
|
message='{0}: Failed to post-process - No change in status'.format(section),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue