From 5af37ee6c7f7f2c097df679281439dcee9a0f37e Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Mon, 10 Dec 2012 16:24:42 -0800 Subject: [PATCH] added failed download handling from nzbget --- nzbToSickBeard.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nzbToSickBeard.py b/nzbToSickBeard.py index a2cb2d7b..29cd4ec4 100644 --- a/nzbToSickBeard.py +++ b/nzbToSickBeard.py @@ -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."