diff --git a/sickbeard/helpers.py b/sickbeard/helpers.py index 96013ff0..8e3fd579 100644 --- a/sickbeard/helpers.py +++ b/sickbeard/helpers.py @@ -184,7 +184,13 @@ Returns a byte-string retrieved from the url provider. url = urlparse.urlunparse(parsed) it = iter(req_headers) - resp = requests.get(url, params=params, data=post_data, headers=dict(zip(it, it))) + + proxies = { + "http": "http://192.168.1.11:8118", + "https": "http://192.168.1.11:8118", + } + + resp = requests.get(url, params=params, data=post_data, headers=dict(zip(it, it)), proxies=proxies) except requests.HTTPError, e: logger.log(u"HTTP error " + str(e.errno) + " while loading URL " + url, logger.WARNING) return None @@ -981,4 +987,4 @@ def real_path(path): """ Returns: the canonicalized absolute pathname. The resulting path will have no symbolic link, '/./' or '/../' components. """ - return ek.ek(os.path.normpath, ek.ek(os.path.normcase, ek.ek(os.path.realpath, path))) \ No newline at end of file + return ek.ek(os.path.normpath, ek.ek(os.path.normcase, ek.ek(os.path.realpath, path)))