From acb8819bf9436fb9b98336215f23be36ebff3aec Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Mon, 10 Dec 2012 16:23:52 -0800 Subject: [PATCH] added failed handling from nzbget --- nzbToCouchPotato.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nzbToCouchPotato.py b/nzbToCouchPotato.py index 1fc4cd6b..6f53378d 100644 --- a/nzbToCouchPotato.py +++ b/nzbToCouchPotato.py @@ -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."