1
0
Fork 0
mirror of https://github.com/evilhero/mylar synced 2024-12-25 09:11:46 +00:00

FIX:(#1548) Fix to allow for continuation of polling RSS Feeds if provider is non-responsive

This commit is contained in:
evilhero 2017-01-25 13:27:03 -05:00
parent 6815ead20a
commit a9b7da8690

View file

@ -159,7 +159,8 @@ def torrents(pickfeed=None, seriesname=None, issue=None, feedinfo=None):
r = scraper.get(feed, verify=verify)#requests.get(feed, params=payload, verify=verify) r = scraper.get(feed, verify=verify)#requests.get(feed, params=payload, verify=verify)
except Exception, e: except Exception, e:
logger.warn('Error fetching RSS Feed Data from %s: %s' % (picksite, e)) logger.warn('Error fetching RSS Feed Data from %s: %s' % (picksite, e))
return lp+=1
continue
feedme = feedparser.parse(r.content) feedme = feedparser.parse(r.content)
#logger.info(feedme) #<-- uncomment this to see what Mylar is retrieving from the feed #logger.info(feedme) #<-- uncomment this to see what Mylar is retrieving from the feed
@ -191,12 +192,12 @@ def torrents(pickfeed=None, seriesname=None, issue=None, feedinfo=None):
#DEMONOID SEARCH RESULT (parse) #DEMONOID SEARCH RESULT (parse)
pass pass
elif pickfeed == "999": elif pickfeed == "999":
logger.info('FEED: ' + feed)
try: try:
feedme = feedparser.parse(feed) feedme = feedparser.parse(feed)
except Exception, e: except Exception, e:
logger.warn('Error fetching RSS Feed Data from %s: %s' % (picksite, e)) logger.warn('Error fetching RSS Feed Data from %s: %s' % (picksite, e))
return lp+=1
continue
#WWT / FEED #WWT / FEED
for entry in feedme.entries: for entry in feedme.entries: