1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Added request headers param.

A recent update/change in RSS cache removed the cookies for custom RSS provider. This re-adds it.
This commit is contained in:
nielsenj 2014-06-29 20:52:11 -07:00
parent 8f16fad1ec
commit 77ea8117c6

View File

@ -36,7 +36,7 @@ class RSSFeeds:
self.fc.purge(age)
def getRSSFeed(self, url, post_data=None):
def getRSSFeed(self, url, post_data=None, request_headers=None):
if not self.fc:
return
@ -47,7 +47,7 @@ class RSSFeeds:
if post_data:
url += urllib.urlencode(post_data)
feed = self.fc.fetch(url)
feed = self.fc.fetch(url, False, False, request_headers)
if not feed:
logger.log(u"RSS Error loading URL: " + url, logger.ERROR)
return