mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-20 21:33:13 -07:00
added failed download handling from nzbget
This commit is contained in:
parent
acb8819bf9
commit
5af37ee6c7
1 changed files with 3 additions and 3 deletions
|
@ -39,14 +39,14 @@ if len(sys.argv) == 8:
|
|||
autoProcessTV.processEpisode(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 autoProcessTV..."
|
||||
|
||||
autoProcessTV.processEpisode(sys.argv[1], sys.argv[2], 0)
|
||||
autoProcessTV.processEpisode(sys.argv[1], sys.argv[2], sys.argv[3])
|
||||
|
||||
else:
|
||||
print "Invalid number of arguments received from client."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue