Merge pull request #737 from adam111316/torrent_rss

Fix for torrent rss feeds not validating on add
This commit is contained in:
adam111316 2014-08-20 16:38:58 +08:00
commit b249efd3d4

View file

@ -95,11 +95,8 @@ class TorrentRssProvider(generic.TorrentProvider):
if not cookie_validator.match(self.cookies): if not cookie_validator.match(self.cookies):
return (False, 'Cookie is not correctly formatted: ' + self.cookies) return (False, 'Cookie is not correctly formatted: ' + self.cookies)
data = self.cache._getRSSData() items = self.cache._getDailyData()
if not data:
return (False, 'No data returned from url: ' + self.url)
items = data.entries
if not len(items) > 0: if not len(items) > 0:
return (False, 'No items found in the RSS feed ' + self.url) return (False, 'No items found in the RSS feed ' + self.url)