1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-11-17 23:05:11 -05:00

Merge pull request #623 from nielsenj/customrssratio

Adds custom RSS provider ratio setting.
This commit is contained in:
echel0n 2014-07-08 09:53:07 -07:00
commit 15c7332277

View File

@ -41,6 +41,7 @@ class TorrentRssProvider(generic.TorrentProvider):
self.url = re.sub('\/$', '', url) self.url = re.sub('\/$', '', url)
self.url = url self.url = url
self.enabled = True self.enabled = True
self.ratio = None
self.supportsBacklog = False self.supportsBacklog = False
self.search_mode = search_mode self.search_mode = search_mode
@ -164,6 +165,8 @@ class TorrentRssProvider(generic.TorrentProvider):
logger.log(u"Saved custom_torrent html dump " + dumpName + " ", logger.MESSAGE) logger.log(u"Saved custom_torrent html dump " + dumpName + " ", logger.MESSAGE)
return True return True
def seedRatio(self):
return self.ratio
class TorrentRssCache(tvcache.TVCache): class TorrentRssCache(tvcache.TVCache):
def __init__(self, provider): def __init__(self, provider):
@ -186,4 +189,4 @@ class TorrentRssCache(tvcache.TVCache):
return None return None
logger.log(u"Attempting to add item to cache: " + title, logger.DEBUG) logger.log(u"Attempting to add item to cache: " + title, logger.DEBUG)
return self._addCacheEntry(title, url) return self._addCacheEntry(title, url)