From 6d8e79c78a612b141c7cd9a79b0c2830e722767a Mon Sep 17 00:00:00 2001 From: nielsenj Date: Mon, 30 Jun 2014 22:48:49 -0700 Subject: [PATCH] Adds custom RSS provider ratio setting. Adds ratio setting to the custom RSS provider. --- sickbeard/providers/rsstorrent.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sickbeard/providers/rsstorrent.py b/sickbeard/providers/rsstorrent.py index 3aac4d8d..b3e7c709 100644 --- a/sickbeard/providers/rsstorrent.py +++ b/sickbeard/providers/rsstorrent.py @@ -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) \ No newline at end of file + return self._addCacheEntry(title, url)