mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 08:53:37 +00:00
Merge pull request #118 from Supremicus/feature/FixWomblesIndexSearch
Fix Womble's Index searching
This commit is contained in:
commit
a7e88cfabe
2 changed files with 5 additions and 6 deletions
|
@ -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]
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue