mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-07 10:33:38 +00:00
Change Wombles to use tv-dvd section.
This commit is contained in:
parent
f7d58568f8
commit
c4f4cae440
2 changed files with 11 additions and 9 deletions
|
@ -1,5 +1,6 @@
|
||||||
### 0.x.x (2015-xx-xx xx:xx:xx UTC)
|
### 0.x.x (2015-xx-xx xx:xx:xx UTC)
|
||||||
|
|
||||||
|
* Change Wombles to use tv-dvd section
|
||||||
* Add requirements file for pip (port from midgetspy/sick-beard)
|
* Add requirements file for pip (port from midgetspy/sick-beard)
|
||||||
* Remove unused libraries fuzzywuzzy and pysrt
|
* Remove unused libraries fuzzywuzzy and pysrt
|
||||||
* Change webserve code to a logical layout and PEP8
|
* Change webserve code to a logical layout and PEP8
|
||||||
|
@ -102,7 +103,7 @@
|
||||||
* Change SCC URLs to remove redirection overhead
|
* Change SCC URLs to remove redirection overhead
|
||||||
* Change TorrentBytes login parameter in line with site change
|
* Change TorrentBytes login parameter in line with site change
|
||||||
* Change FreshOnTv login parameter and use secure URLs, add logging of Cloudflare blocking and prevent vacant cookie tracebacks
|
* Change FreshOnTv login parameter and use secure URLs, add logging of Cloudflare blocking and prevent vacant cookie tracebacks
|
||||||
* Change TPB webproxy list and add SSL variants
|
* Change TPB webproxy list and add SSL variants
|
||||||
* Add YTV network logo
|
* Add YTV network logo
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,14 +15,11 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with SickGear. If not, see <http://www.gnu.org/licenses/>.
|
# along with SickGear. If not, see <http://www.gnu.org/licenses/>.
|
||||||
import time
|
|
||||||
|
|
||||||
import sickbeard
|
|
||||||
import generic
|
import generic
|
||||||
|
|
||||||
from sickbeard import logger
|
from sickbeard import logger
|
||||||
from sickbeard import tvcache
|
from sickbeard import tvcache
|
||||||
from sickbeard.exceptions import AuthException
|
|
||||||
|
|
||||||
|
|
||||||
class WombleProvider(generic.NZBProvider):
|
class WombleProvider(generic.NZBProvider):
|
||||||
|
@ -53,8 +50,11 @@ class WombleCache(tvcache.TVCache):
|
||||||
return
|
return
|
||||||
|
|
||||||
cl = []
|
cl = []
|
||||||
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']:
|
for url in [self.provider.url + 'rss/?sec=tv-x264&fr=false',
|
||||||
logger.log(u"Womble's Index cache update URL: " + url, logger.DEBUG)
|
self.provider.url + 'rss/?sec=tv-sd&fr=false',
|
||||||
|
self.provider.url + 'rss/?sec=tv-dvd&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)
|
data = self.getRSSFeed(url)
|
||||||
|
|
||||||
# As long as we got something from the provider we count it as an update
|
# As long as we got something from the provider we count it as an update
|
||||||
|
@ -65,10 +65,10 @@ class WombleCache(tvcache.TVCache):
|
||||||
for item in data.entries:
|
for item in data.entries:
|
||||||
title, url = self._get_title_and_url(item)
|
title, url = self._get_title_and_url(item)
|
||||||
ci = self._parseItem(title, url)
|
ci = self._parseItem(title, url)
|
||||||
if ci is not None:
|
if None is not ci:
|
||||||
cl.append(ci)
|
cl.append(ci)
|
||||||
|
|
||||||
if len(cl) > 0:
|
if 0 < len(cl):
|
||||||
myDB = self._getDB()
|
myDB = self._getDB()
|
||||||
myDB.mass_action(cl)
|
myDB.mass_action(cl)
|
||||||
|
|
||||||
|
@ -77,6 +77,7 @@ class WombleCache(tvcache.TVCache):
|
||||||
self.setLastUpdate()
|
self.setLastUpdate()
|
||||||
|
|
||||||
def _checkAuth(self, data):
|
def _checkAuth(self, data):
|
||||||
return data != 'Invalid Link'
|
return 'Invalid Link' != data
|
||||||
|
|
||||||
|
|
||||||
provider = WombleProvider()
|
provider = WombleProvider()
|
||||||
|
|
Loading…
Reference in a new issue