Return success when script is None

This commit is contained in:
Clinton Hall 2019-08-05 13:25:13 +12:00 committed by GitHub
commit 1aa16ef079
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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',
) )