log params to SickBeard.

This commit is contained in:
clinton-hall 2014-07-15 08:02:18 +09:30
commit 2b81d8b9ae

View file

@ -222,14 +222,14 @@ class autoProcessTV:
logger.debug("path: %s" % (dirName),section) logger.debug("path: %s" % (dirName),section)
data = json.dumps({"name": "DownloadedEpisodesScan", "path": dirName}) data = json.dumps({"name": "DownloadedEpisodesScan", "path": dirName})
logger.debug("Opening URL: %s" % (url),section)
try: try:
if section == "SickBeard": if section == "SickBeard":
logger.debug("Opening URL: %s with params: %s" % (url, str(fork_params)), section)
r = None r = None
r = requests.get(url, auth=(username, password), params=fork_params, stream=True, verify=False) r = requests.get(url, auth=(username, password), params=fork_params, stream=True, verify=False)
elif section == "NzbDrone": elif section == "NzbDrone":
start_numMissing = self.numMissing(url1, params, headers) # get current number of outstanding eppisodes. start_numMissing = self.numMissing(url1, params, headers) # get current number of outstanding eppisodes.
logger.debug("Opening URL: %s with data: %s" % (url, str(data)), section)
r = None r = None
r = requests.post(url, data=data, headers=headers, stream=True, verify=False) r = requests.post(url, data=data, headers=headers, stream=True, verify=False)
except requests.ConnectionError: except requests.ConnectionError: