mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
added failed handling from nzbget
This commit is contained in:
parent
266f545574
commit
acb8819bf9
1 changed files with 3 additions and 3 deletions
|
@ -17,14 +17,14 @@ if len(sys.argv) == 8:
|
||||||
autoProcessMovie.process(sys.argv[1], sys.argv[2], sys.argv[7])
|
autoProcessMovie.process(sys.argv[1], sys.argv[2], sys.argv[7])
|
||||||
|
|
||||||
# NZBGet
|
# NZBGet
|
||||||
elif len(sys.argv) == 3:
|
elif len(sys.argv) == 4:
|
||||||
# NZBGet 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
|
||||||
# From NZBGet only successful downloads are triggered so status is set to "0"
|
# 3 The status of the download: 0 == successful
|
||||||
print "Script triggered from NZBGet, starting autoProcessMovie..."
|
print "Script triggered from NZBGet, starting autoProcessMovie..."
|
||||||
|
|
||||||
autoProcessMovie.process(sys.argv[1], sys.argv[2], 0)
|
autoProcessMovie.process(sys.argv[1], sys.argv[2], sys.argv[3])
|
||||||
|
|
||||||
else:
|
else:
|
||||||
print "Invalid number of arguments received from client."
|
print "Invalid number of arguments received from client."
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue