mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-20 16:43:43 +00:00
Adds custom RSS provider ratio setting.
Adds ratio setting to the custom RSS provider.
This commit is contained in:
parent
9136df2ae5
commit
6d8e79c78a
1 changed files with 4 additions and 1 deletions
|
@ -41,6 +41,7 @@ class TorrentRssProvider(generic.TorrentProvider):
|
|||
self.url = re.sub('\/$', '', url)
|
||||
self.url = url
|
||||
self.enabled = True
|
||||
self.ratio = None
|
||||
self.supportsBacklog = False
|
||||
|
||||
self.search_mode = search_mode
|
||||
|
@ -167,6 +168,8 @@ class TorrentRssProvider(generic.TorrentProvider):
|
|||
logger.log(u"Saved custom_torrent html dump " + dumpName + " ", logger.MESSAGE)
|
||||
return True
|
||||
|
||||
def seedRatio(self):
|
||||
return self.ratio
|
||||
|
||||
class TorrentRssCache(tvcache.TVCache):
|
||||
def __init__(self, provider):
|
||||
|
@ -192,4 +195,4 @@ class TorrentRssCache(tvcache.TVCache):
|
|||
return None
|
||||
|
||||
logger.log(u"Attempting to add item to cache: " + title, logger.DEBUG)
|
||||
return self._addCacheEntry(title, url)
|
||||
return self._addCacheEntry(title, url)
|
||||
|
|
Loading…
Reference in a new issue