diff --git a/sickbeard/providers/kat.py b/sickbeard/providers/kat.py index 3e700549..84fb1e8f 100644 --- a/sickbeard/providers/kat.py +++ b/sickbeard/providers/kat.py @@ -312,8 +312,13 @@ class KATProvider(generic.TorrentProvider): parsed = list(urlparse.urlparse(url)) parsed[2] = re.sub("/{2,}", "/", parsed[2]) # replace two or more / with one url = urlparse.urlunparse(parsed) + + proxies = { + "http": "http://192.168.1.11:8118", + "https": "http://192.168.1.11:8118", + } - r = requests.get(url) + r = requests.get(url, proxies=proxies) except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError), e: logger.log(u"Error loading " + self.name + " URL: " + str(sys.exc_info()) + " - " + ex(e), logger.ERROR) return None diff --git a/sickbeard/providers/thepiratebay.py b/sickbeard/providers/thepiratebay.py index 5c540e40..82f50495 100644 --- a/sickbeard/providers/thepiratebay.py +++ b/sickbeard/providers/thepiratebay.py @@ -307,8 +307,13 @@ class ThePirateBayProvider(generic.TorrentProvider): if self.proxy.isEnabled(): headers.update({'referer': self.proxy.getProxyURL()}) + proxies = { + "http": "http://192.168.1.11:8118", + "https": "http://192.168.1.11:8118", + } + try: - r = requests.get(url, headers=headers) + r = requests.get(url, headers=headers, proxies=proxies) except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError), e: logger.log(u"Error loading " + self.name + " URL: " + str(sys.exc_info()) + " - " + ex(e), logger.ERROR) return None