Bypass for manual execution (#1788)

* no_status_check prevents additional checks.
#1192
#1778
This commit is contained in:
Clinton Hall 2020-10-16 22:55:41 +13:00 committed by GitHub
commit bf05f1b4e7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 17 additions and 5 deletions

View file

@ -999,6 +999,8 @@ def main(args, section=None):
elif len(args) > 5 and args[5] == 'generic':
logger.info('Script triggered from generic program')
result = process(args[1], input_name=args[2], input_category=args[3], download_id=args[4])
elif core.NZB_NO_MANUAL:
logger.warning('Invalid number of arguments received from client, and no_manual set')
else:
# Perform Manual Post-Processing
logger.warning('Invalid number of arguments received from client, Switching to manual run mode ...')