From ceee795b09dfd2b3ec9c154b1b9cc9b76f5d5564 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Sat, 13 Feb 2016 08:15:40 +1030 Subject: [PATCH] force failed to int before testing. #958 --- core/autoProcess/autoProcessTV.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/autoProcess/autoProcessTV.py b/core/autoProcess/autoProcessTV.py index 7912efa4..01a5a871 100644 --- a/core/autoProcess/autoProcessTV.py +++ b/core/autoProcess/autoProcessTV.py @@ -177,7 +177,7 @@ class autoProcessTV: return [0, ""] # Success (as far as this script is concerned) elif nzbExtractionBy == "Destination": logger.info("Check for media files ignored because nzbExtractionBy is set to Destination.") - if failed == "0": + if int(failed) == 0: logger.info("Setting Status Success.") status = 0 failed = 0