https://forums.sabnzbd.org/viewtopic.php?f=9&t=6203
My post-processing user script fails and I'm not quite confident as to why. I've echoed the values that sabnzbd should be passing to make sure they are there, and sure enough they are. Any help would be appreciated.
Just for background, sabToSickBeard.py is provided by sickbeard and sabToPushover is a script based on a pushover script I found on this forum:
https://forums.sabnzbd.org/viewtopic.ph ... 377#p73377. Both scripts work if called by sabnzbd directly.
Here is my post-processing script:
Code: Select all
#!/usr/bin/env bash
python /usr/local/sickbeard/autoProcessTV/sabToPushover.py $1 $2 $3 $4 $5 $6 $7
python /usr/local/sickbeard/autoProcessTV/sabToSickBeard.py $1 $2 $3 $4 $5 $6 $7
echo $0
echo $1
echo $2
echo $3
echo $4
echo $5
echo $6
echo $7
Here is the result:
Traceback (most recent call last):
File "/usr/local/sickbeard/autoProcessTV/sabToPushover.py", line 8, in <module>
print("Convertig argument " + sys.argv[7] + " to status.")
IndexError: list index out of range
Traceback (most recent call last):
File "/usr/local/sickbeard/autoProcessTV/sabToSickBeard.py", line 25, in <module>
if sys.argv[7] == 0:
IndexError: list index out of range
/usr/local/sickbeard/autoProcessTV/groupProcessing.py
/folder_location/filename.3
filename.nzb
filename
tv
alt.binaries.teevee
3