Bypass for manual

This commit is contained in:
Clinton Hall 2020-10-16 22:38:32 +13:00 committed by GitHub
commit 8fdf913a0d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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