mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Merge legacy sab parsing with 0.7.17+
This commit is contained in:
parent
528cbd02cd
commit
637020d2bf
3 changed files with 25 additions and 48 deletions
|
@ -762,11 +762,8 @@ def main(args, section=None):
|
|||
elif 'SAB_SCRIPT' in os.environ:
|
||||
result = sab.process_script()
|
||||
# SABnzbd Pre 0.7.17
|
||||
elif len(args) == core.SABNZB_NO_OF_ARGUMENTS:
|
||||
result = sab.process_legacy(args)
|
||||
# SABnzbd 0.7.17+
|
||||
elif len(args) >= core.SABNZB_0717_NO_OF_ARGUMENTS:
|
||||
result = sab.process_0717(args)
|
||||
elif len(args) >= sab.MINIMUM_ARGUMENTS:
|
||||
result = sab.process(args)
|
||||
# Generic program
|
||||
elif len(args) > 5 and args[5] == 'generic':
|
||||
logger.info('Script triggered from generic program')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue