mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-23 06:25:22 -07:00
Add support for arg: manual
This commit is contained in:
parent
3e4861e87c
commit
49004e08e0
1 changed files with 4 additions and 0 deletions
|
@ -696,6 +696,10 @@ def main(args, section=None):
|
||||||
result = process(os.environ['NZBPP_DIRECTORY'], inputName=os.environ['NZBPP_NZBNAME'], status=status,
|
result = process(os.environ['NZBPP_DIRECTORY'], inputName=os.environ['NZBPP_NZBNAME'], status=status,
|
||||||
clientAgent=clientAgent, download_id=download_id, inputCategory=os.environ['NZBPP_CATEGORY'],
|
clientAgent=clientAgent, download_id=download_id, inputCategory=os.environ['NZBPP_CATEGORY'],
|
||||||
failureLink=failureLink)
|
failureLink=failureLink)
|
||||||
|
# Manual program
|
||||||
|
elif args[5] == 'manual':
|
||||||
|
logger.info("Script triggered manually")
|
||||||
|
result = process(args[1], inputName=args[2], inputCategory=args[3], download_id=args[4])
|
||||||
# SABnzbd Pre 0.7.17
|
# SABnzbd Pre 0.7.17
|
||||||
elif len(args) == core.SABNZB_NO_OF_ARGUMENTS:
|
elif len(args) == core.SABNZB_NO_OF_ARGUMENTS:
|
||||||
# SABnzbd argv:
|
# SABnzbd argv:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue