mirror of
https://github.com/moparisthebest/SickRage
synced 2024-11-11 03:45:01 -05:00
Merge pull request #737 from adam111316/torrent_rss
Fix for torrent rss feeds not validating on add
This commit is contained in:
commit
b249efd3d4
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user