1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 11:02:21 -05:00

Fixes issues with RSS feeds not being parsed correctly.

This commit is contained in:
echel0n 2014-04-25 04:43:24 -07:00
parent 0d90d01460
commit a74b12f519

View File

@ -125,9 +125,7 @@ class TorrentRssProvider(generic.TorrentProvider):
return (False, 'Error when trying to load RSS: ' + ex(e)) return (False, 'Error when trying to load RSS: ' + ex(e))
def getURL(self, url, post_data=None, headers=None): def getURL(self, url, post_data=None, headers=None):
try: try:
url = urljoin(url, urlparse(url).path.replace('//', '/'))
response = requests.get(url, verify=False) response = requests.get(url, verify=False)
except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError), e: except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError), e:
logger.log(u"Error loading " + self.name + " URL: " + ex(e), logger.ERROR) logger.log(u"Error loading " + self.name + " URL: " + ex(e), logger.ERROR)