mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Fix missed ProcessResult
This commit is contained in:
parent
e1fe63328c
commit
111330510f
1 changed files with 4 additions and 1 deletions
|
@ -365,7 +365,10 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
|
||||||
logger.debug('The Scan command return status: {0}'.format(command_status), section)
|
logger.debug('The Scan command return status: {0}'.format(command_status), section)
|
||||||
if command_status in ['completed']:
|
if command_status in ['completed']:
|
||||||
logger.debug('The Scan command has completed successfully. Renaming was successful.', section)
|
logger.debug('The Scan command has completed successfully. Renaming was successful.', section)
|
||||||
return [0, '{0}: Successfully post-processed {1}'.format(section, input_name)]
|
return ProcessResult(
|
||||||
|
message='{0}: Successfully post-processed {1}'.format(section, input_name),
|
||||||
|
status_code=0,
|
||||||
|
)
|
||||||
elif command_status in ['failed']:
|
elif command_status in ['failed']:
|
||||||
logger.debug('The Scan command has failed. Renaming was not successful.', section)
|
logger.debug('The Scan command has failed. Renaming was not successful.', section)
|
||||||
# return ProcessResult(
|
# return ProcessResult(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue