From 460e20bf778db4bafc61f9b7a3f4dfc217dfa273 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Sat, 1 Dec 2012 14:14:08 -0800 Subject: [PATCH 1/2] Make sure status is always an integer --- autoProcessMovie.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/autoProcessMovie.py b/autoProcessMovie.py index 603bd29a..0a6c6e68 100644 --- a/autoProcessMovie.py +++ b/autoProcessMovie.py @@ -27,9 +27,10 @@ class AuthURLOpener(urllib.FancyURLopener): def process(dirName, nzbName=None, status=0): + status = int(status) config = ConfigParser.ConfigParser() configFilename = os.path.join(os.path.dirname(sys.argv[0]), "autoProcessMovie.cfg") - print "autoProcessMovie v 3.0" + print "autoProcessMovie v 3.1" print "Loading config from", configFilename if not os.path.isfile(configFilename): From 1e9ea119d21addfa7add62f7dcfd74fc6ad1ed18 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Sat, 1 Dec 2012 14:16:33 -0800 Subject: [PATCH 2/2] Make sure status is always an integer --- autoProcessTV.py | 1 + 1 file changed, 1 insertion(+) diff --git a/autoProcessTV.py b/autoProcessTV.py index b42ffd58..acfca15a 100644 --- a/autoProcessTV.py +++ b/autoProcessTV.py @@ -43,6 +43,7 @@ class AuthURLOpener(urllib.FancyURLopener): def processEpisode(dirName, nzbName=None, status=0): + status = int(status) if status > 0: print "the download failed. nothing to process" sys.exit()