mirror of
https://github.com/moparisthebest/SickRage
synced 2025-01-05 19:08:02 -05:00
Fix for rss torrent feeds, resolves issue #32
This commit is contained in:
parent
ad339a9b2e
commit
77696cad66
@ -113,7 +113,6 @@ class TorrentRssProvider(generic.TorrentProvider):
|
|||||||
if url.startswith('magnet:') and re.search('urn:btih:([\w]{32,40})', url):
|
if url.startswith('magnet:') and re.search('urn:btih:([\w]{32,40})', url):
|
||||||
return (True, 'RSS feed Parsed correctly')
|
return (True, 'RSS feed Parsed correctly')
|
||||||
else:
|
else:
|
||||||
|
|
||||||
torrent_file = self.getURL(url)
|
torrent_file = self.getURL(url)
|
||||||
try:
|
try:
|
||||||
bdecode(torrent_file)
|
bdecode(torrent_file)
|
||||||
|
@ -1364,9 +1364,8 @@ class ConfigProviders:
|
|||||||
return providerDict[name].getID() + '|' + providerDict[name].configStr()
|
return providerDict[name].getID() + '|' + providerDict[name].configStr()
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
newProvider = rsstorrent.TorrentRssProvider(name, url)
|
newProvider = rsstorrent.TorrentRssProvider(name, url)
|
||||||
sickbeard.TorrentRssProviderList.append(newProvider)
|
sickbeard.torrentRssProviderList.append(newProvider)
|
||||||
return newProvider.getID() + '|' + newProvider.configStr()
|
return newProvider.getID() + '|' + newProvider.configStr()
|
||||||
|
|
||||||
@cherrypy.expose
|
@cherrypy.expose
|
||||||
|
Loading…
Reference in New Issue
Block a user