Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-guides/TRaSH-Guides/commit/ddc7efac1569cc22e0a42701b8e7955dd04cd7f9 You should set ROOT_URL correctly, otherwise the web may not work correctly.

SABnzbd - Update Clean.py to work with V.4.0.0

Sabnzbd Version 4.0.0 (current beta) introduced a couple of input variables, that weren't available in the versions before.
This PR fixes the two scripts in the Guide, so they are compatible with earlier and V4+ versions

https://sabnzbd.org/wiki/scripts/pre-queue-scripts#toc3
pull/1240/head
Gabe 2 years ago committed by GitHub
parent 77a279c77a
commit ddc7efac15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -21,8 +21,12 @@ import sys
import re
try:
(scriptname, nzbname, postprocflags, category, script, prio, downloadsize, grouplist, showname, season, episodenumber, episodename) = sys.argv
# 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
downloadsize = int(downloadsize)
except ValueError:
# ...or 11 variables for earlier versions
(scriptname, nzbname, postprocflags, category, script, prio, downloadsize, grouplist, showname, season, episodenumber, episodename) = sys.argv
except:
sys.exit(1) # exit with 1 causes SABnzbd to ignore the output of this script
@ -64,4 +68,4 @@ print()
print()
print()
# 0 means OK
sys.exit(0)
sys.exit(0)

Loading…
Cancel
Save