mirror of
https://github.com/SickGear/SickGear.git
synced 2025-03-15 09:07:43 +00:00
Fix Womble's Index searching
* Fix Womble's Index searching (ssl disabled for now, old categories are the new active ones again)
This commit is contained in:
parent
fe1bd3c428
commit
b2ca923270
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
|
* Fix trim zero of military time hour to not use 12 hr time
|
||||||
* Change ThePirateBay to use oldpiratebay as a temporary fix
|
* Change ThePirateBay to use oldpiratebay as a temporary fix
|
||||||
* Change Search Settings/Torrent/Deluge option texts for improved understanding
|
* 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]
|
[develop changelog]
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ class WombleProvider(generic.NZBProvider):
|
||||||
generic.NZBProvider.__init__(self, "Womble's Index")
|
generic.NZBProvider.__init__(self, "Womble's Index")
|
||||||
self.enabled = False
|
self.enabled = False
|
||||||
self.cache = WombleCache(self)
|
self.cache = WombleCache(self)
|
||||||
self.url = 'https://newshost.co.za/'
|
self.url = 'http://newshost.co.za/'
|
||||||
|
|
||||||
def isEnabled(self):
|
def isEnabled(self):
|
||||||
return self.enabled
|
return self.enabled
|
||||||
|
@ -53,7 +53,7 @@ class WombleCache(tvcache.TVCache):
|
||||||
return
|
return
|
||||||
|
|
||||||
cl = []
|
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)
|
logger.log(u"Womble's Index cache update URL: " + url, logger.DEBUG)
|
||||||
data = self.getRSSFeed(url)
|
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
|
# 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:
|
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:
|
if ci is not None:
|
||||||
cl.append(ci)
|
cl.append(ci)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if len(cl) > 0:
|
if len(cl) > 0:
|
||||||
myDB = self._getDB()
|
myDB = self._getDB()
|
||||||
myDB.mass_action(cl)
|
myDB.mass_action(cl)
|
||||||
|
@ -81,4 +80,3 @@ class WombleCache(tvcache.TVCache):
|
||||||
return data != 'Invalid Link'
|
return data != 'Invalid Link'
|
||||||
|
|
||||||
provider = WombleProvider()
|
provider = WombleProvider()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue