mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 13:23:18 -07:00
Changed arguments to work with NZBGet
Reduced number of arguments and removed description not used arguments, set status of NZB to success
This commit is contained in:
parent
b8148383ad
commit
d2593acdca
1 changed files with 5 additions and 9 deletions
|
@ -3,22 +3,18 @@
|
||||||
import sys
|
import sys
|
||||||
import autoProcessMovie
|
import autoProcessMovie
|
||||||
|
|
||||||
if len(sys.argv) < 8:
|
if len(sys.argv) < 2:
|
||||||
print "Not enough arguments received from SABnzbd."
|
print "Not enough arguments received from NZBGet."
|
||||||
print "Running autoProcessMovie as a manual run"
|
print "Running autoProcessMovie as a manual run"
|
||||||
autoProcessMovie.process('Manual Run', 'Manual Run', 0)
|
autoProcessMovie.process('Manual Run', 'Manual Run', 0)
|
||||||
else:
|
else:
|
||||||
status = int(sys.argv[7])
|
status = 0
|
||||||
autoProcessMovie.process(sys.argv[1], sys.argv[2], status)
|
autoProcessMovie.process(sys.argv[1], sys.argv[2], status)
|
||||||
|
|
||||||
|
|
||||||
# SABnzbd argv:
|
# NZBGet argv:
|
||||||
# 1 The final directory of the job (full path)
|
# 1 The final directory of the job (full path)
|
||||||
# 2 The original name of the NZB file
|
# 2 The original name of the NZB file
|
||||||
# 3 Clean version of the job name (no path info and ".nzb" removed)
|
# 3 Status of post processing. 0 = OK
|
||||||
# 4 Indexer's report number (if supported)
|
|
||||||
# 5 User-defined category
|
|
||||||
# 6 Group that the NZB was posted in e.g. alt.binaries.x
|
|
||||||
# 7 Status of post processing. 0 = OK, 1=failed verification, 2=failed unpack, 3=1+2
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue