mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-22 06:13:19 -07:00
Return success when script is None
This commit is contained in:
parent
4c2565c84b
commit
1aa16ef079
1 changed files with 3 additions and 2 deletions
|
@ -33,9 +33,10 @@ def external_script(output_destination, torrent_name, torrent_label, settings):
|
||||||
|
|
||||||
core.USER_SCRIPT = settings.get('user_script_path', '')
|
core.USER_SCRIPT = settings.get('user_script_path', '')
|
||||||
|
|
||||||
if not core.USER_SCRIPT or core.USER_SCRIPT == 'None': # do nothing and return failed.
|
if not core.USER_SCRIPT or core.USER_SCRIPT == 'None':
|
||||||
|
# do nothing and return success. This allows the user an option to Link files only and not run a script.
|
||||||
return ProcessResult(
|
return ProcessResult(
|
||||||
status_code=1,
|
status_code=0,
|
||||||
message='No user script defined',
|
message='No user script defined',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue