From ce9f07913635dbdd06dcd55c93b9c05c382bd177 Mon Sep 17 00:00:00 2001 From: echel0n Date: Fri, 25 Apr 2014 04:45:34 -0700 Subject: [PATCH] Fixes issues with RSS feeds not being parsed correctly. --- sickbeard/providers/rsstorrent.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sickbeard/providers/rsstorrent.py b/sickbeard/providers/rsstorrent.py index 7afa51f8..022f993b 100644 --- a/sickbeard/providers/rsstorrent.py +++ b/sickbeard/providers/rsstorrent.py @@ -19,7 +19,7 @@ import os import xml.dom.minidom import re -from urlparse import urlparse, urljoin +import urlparse import sickbeard import generic @@ -126,6 +126,8 @@ class TorrentRssProvider(generic.TorrentProvider): def getURL(self, url, post_data=None, headers=None): try: + parsed = list(urlparse.urlparse(url)) + parsed[2] = re.sub("/{2,}", "/", parsed[2]) # replace two or more / with one response = requests.get(url, verify=False) except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError), e: logger.log(u"Error loading " + self.name + " URL: " + ex(e), logger.ERROR)