From a00847e2e68b931801b0fb6d2cf652206bbd33a2 Mon Sep 17 00:00:00 2001 From: clinton-hall Date: Fri, 10 Oct 2014 09:54:39 +1030 Subject: [PATCH] fix error logging for nzbdrone. #583 --- nzbtomedia/autoProcess/autoProcessTV.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/nzbtomedia/autoProcess/autoProcessTV.py b/nzbtomedia/autoProcess/autoProcessTV.py index 1e159101..6bb8950d 100644 --- a/nzbtomedia/autoProcess/autoProcessTV.py +++ b/nzbtomedia/autoProcess/autoProcessTV.py @@ -13,7 +13,7 @@ from nzbtomedia import logger from nzbtomedia.transcoder import transcoder class autoProcessTV: - def numMissing(self, url1, params, headers): + def numMissing(self, url1, params, headers, section): r = None missing = 0 try: @@ -266,7 +266,7 @@ class autoProcessTV: if self.CDH(url2, headers) and clientAgent in ['sabnzbd', 'nzbget']: logger.debug("Complete DownLoad Handling is enabled. Passing back to %s." % (section), section) return [status, "%s: Complete DownLoad Handling is enabled. Passing back to %s" % (section, section) ] - start_numMissing = self.numMissing(url1, params, headers) # get current number of outstanding eppisodes. + start_numMissing = self.numMissing(url1, params, headers, section) # get current number of outstanding eppisodes. logger.debug("Opening URL: %s with data: %s" % (url, str(data)), section) r = None r = requests.post(url, data=data, headers=headers, stream=True, verify=False) @@ -301,7 +301,7 @@ class autoProcessTV: time.sleep(10 * wait_for) if not os.path.exists(dirName): break - new_numMissing = self.numMissing(url1, params, headers) + new_numMissing = self.numMissing(url1, params, headers, section) if new_numMissing == current_numMissing: # nothing processed since last call n += 1 else: