added failed handling from nzbget

This commit is contained in:
clinton-hall 2012-12-10 16:23:52 -08:00
commit acb8819bf9

View file

@ -17,14 +17,14 @@ if len(sys.argv) == 8:
autoProcessMovie.process(sys.argv[1], sys.argv[2], sys.argv[7])
# NZBGet
elif len(sys.argv) == 3:
elif len(sys.argv) == 4:
# NZBGet argv:
# 1 The final directory of the job (full path)
# 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..."
autoProcessMovie.process(sys.argv[1], sys.argv[2], 0)
autoProcessMovie.process(sys.argv[1], sys.argv[2], sys.argv[3])
else:
print "Invalid number of arguments received from client."