Standardize processing

This commit is contained in:
Labrys of Knossos 2022-11-25 00:12:03 -05:00
parent 637020d2bf
commit e8f5dc409a

View file

@ -8,14 +8,13 @@ MINIMUM_ARGUMENTS = 8
def process_script():
client_agent = 'sabnzbd'
logger.info('Script triggered from SABnzbd Version {0}.'.format(
os.environ['SAB_VERSION']))
version = os.environ['SAB_VERSION']
logger.info('Script triggered from SABnzbd {0}.'.format(version))
return nzb.process(
os.environ['SAB_COMPLETE_DIR'],
input_directory=os.environ['SAB_COMPLETE_DIR'],
input_name=os.environ['SAB_FINAL_NAME'],
status=int(os.environ['SAB_PP_STATUS']),
client_agent=client_agent,
client_agent='sabnzbd',
download_id=os.environ['SAB_NZO_ID'],
input_category=os.environ['SAB_CAT'],
failure_link=os.environ['SAB_FAILURE_URL'],