Merge pull request #118 from Supremicus/feature/FixWomblesIndexSearch

Fix Womble's Index searching
This commit is contained in:
adam111316 2014-12-27 23:21:46 +08:00
commit a7e88cfabe
2 changed files with 5 additions and 6 deletions

View file

@ -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]

View file

@ -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()