Private GIT

Skip to content
Snippets Groups Projects
Commit 7201417f authored by Nic Wolfe's avatar Nic Wolfe
Browse files

Cleaned up the BTN provider, fixed the icon and link

parent b0214b4f
No related branches found
No related tags found
No related merge requests found
data/images/providers/btn.gif

1.43 KiB

...@@ -34,7 +34,7 @@ class BTNProvider(generic.TorrentProvider): ...@@ -34,7 +34,7 @@ class BTNProvider(generic.TorrentProvider):
self.cache = BTNCache(self) self.cache = BTNCache(self)
self.url = 'http://www.broadcasthe.net/' self.url = 'http://broadcasthe.net/'
def isEnabled(self): def isEnabled(self):
return True return True
...@@ -51,27 +51,12 @@ class BTNCache(tvcache.TVCache): ...@@ -51,27 +51,12 @@ class BTNCache(tvcache.TVCache):
# only poll BTN every 15 minutes max # only poll BTN every 15 minutes max
self.minTime = 15 self.minTime = 15
def _getRSSData(self): def _getRSSData(self):
# These will be ignored on the serverside.
ignore_regex = "all.month|month.of|season[\s\d]*complete"
url = 'https://broadcasthe.net/feeds.php?feed=torrents_all&user='+ sickbeard.BTN_USER_ID +'&auth='+ sickbeard.BTN_AUTH_TOKEN +'&passkey='+ sickbeard.BTN_PASSKEY +'&authkey='+ sickbeard.BTN_AUTHKEY url = 'https://broadcasthe.net/feeds.php?feed=torrents_all&user='+ sickbeard.BTN_USER_ID +'&auth='+ sickbeard.BTN_AUTH_TOKEN +'&passkey='+ sickbeard.BTN_PASSKEY +'&authkey='+ sickbeard.BTN_AUTHKEY
logger.log(u"BTN cache update URL: "+ url, logger.DEBUG) logger.log(u"BTN cache update URL: "+ url, logger.DEBUG)
data = self.provider.getURL(url) data = self.provider.getURL(url)
xml_content = etree.fromstring(data)
description = xml_content.findtext('channel/description')
# [TODO] Error handling
# if "User can't be found" in description:
# logger.log(u"TvTorrents invalid digest, check your config", logger.ERROR)
#
# if "Invalid Hash" in description:
# logger.log(u"TvTorrents invalid hash, check your config", logger.ERROR)
return data return data
def _parseItem(self, item): def _parseItem(self, item):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment