From b2ca923270d05358d45d9e6356798c2bdc156f0c Mon Sep 17 00:00:00 2001 From: Supremicus Date: Sun, 28 Dec 2014 01:14:40 +1000 Subject: [PATCH] Fix Womble's Index searching * Fix Womble's Index searching (ssl disabled for now, old categories are the new active ones again) --- CHANGES.md | 1 + sickbeard/providers/womble.py | 10 ++++------ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 6be107da..307a212f 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -10,6 +10,7 @@ * Fix trim zero of military time hour to not use 12 hr time * Change ThePirateBay to use oldpiratebay as a temporary fix * Change Search Settings/Torrent/Deluge option texts for improved understanding +* Fix Womble's Index searching (ssl disabled for now, old categories are the new active ones again) [develop changelog] diff --git a/sickbeard/providers/womble.py b/sickbeard/providers/womble.py index 81e639b4..0991eac3 100644 --- a/sickbeard/providers/womble.py +++ b/sickbeard/providers/womble.py @@ -30,7 +30,7 @@ class WombleProvider(generic.NZBProvider): generic.NZBProvider.__init__(self, "Womble's Index") self.enabled = False self.cache = WombleCache(self) - self.url = 'https://newshost.co.za/' + self.url = 'http://newshost.co.za/' def isEnabled(self): return self.enabled @@ -53,7 +53,7 @@ class WombleCache(tvcache.TVCache): return cl = [] - for url in [self.provider.url + 'rss/?sec=tv-sd&fr=false', self.provider.url + 'rss/?sec=tv-hd&fr=false']: + for url in [self.provider.url + 'rss/?sec=tv-x264&fr=false', self.provider.url + 'rss/?sec=tv-sd&fr=false', self.provider.url + 'rss/?sec=tv-hd&fr=false']: logger.log(u"Womble's Index cache update URL: " + url, logger.DEBUG) data = self.getRSSFeed(url) @@ -63,12 +63,11 @@ class WombleCache(tvcache.TVCache): # By now we know we've got data and no auth errors, all we need to do is put it in the database for item in data.entries: - ci = self._parseItem(item) + title, url = self._get_title_and_url(item) + ci = self._parseItem(title, url) if ci is not None: cl.append(ci) - - if len(cl) > 0: myDB = self._getDB() myDB.mass_action(cl) @@ -81,4 +80,3 @@ class WombleCache(tvcache.TVCache): return data != 'Invalid Link' provider = WombleProvider() -