From 1aa16ef079eb170dc51f701bca4e792758a4777d Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Mon, 5 Aug 2019 13:25:13 +1200 Subject: [PATCH] Return success when script is None --- core/user_scripts.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/user_scripts.py b/core/user_scripts.py index 5d27cd2c..eaeb1b0f 100644 --- a/core/user_scripts.py +++ b/core/user_scripts.py @@ -33,9 +33,10 @@ def external_script(output_destination, torrent_name, torrent_label, settings): 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( - status_code=1, + status_code=0, message='No user script defined', )