mirror of
https://github.com/TRaSH-Guides/Guides.git
synced 2026-05-03 23:09:58 -05:00
Revert "SABnzbd - Update replace_for.py to work with V.4.0.0"
This reverts commit 77a279c77a.
---
Post-processing scripts have differents args from Pre-queue scripts.
This commit is contained in:
@@ -20,12 +20,7 @@ import os
|
||||
import os.path
|
||||
|
||||
try:
|
||||
try:
|
||||
# Parse the 18 input variables for SABnzbd version >= 4.0.0
|
||||
(scriptname, nzbname, postprocflags, category, script, prio, downloadsize, grouplist, showname, season, episodenumber, episodename, is_proper, resolution, decade, year, month, day, job_type) = sys.argv
|
||||
except ValueError:
|
||||
# ...or 11 variables for earlier versions
|
||||
(scriptname, nzbname, postprocflags, category, script, prio, downloadsize, grouplist, showname, season, episodenumber, episodename) = sys.argv
|
||||
(scriptname, directory, orgnzbname, jobname, reportnumber, category, group, postprocstatus, url) = sys.argv
|
||||
except:
|
||||
print("No commandline parameters found")
|
||||
sys.exit(1) # exit with 1 causes SABnzbd to ignore the output of this script
|
||||
|
||||
Reference in New Issue
Block a user