mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00: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:
parent
8f16fad1ec
commit
77ea8117c6
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
@ -59,4 +59,4 @@ class RSSFeeds:
|
|||
logger.log(u"No RSS items found using URL: " + url, logger.WARNING)
|
||||
return
|
||||
|
||||
return feed
|
||||
return feed
|
||||
|
|
Loading…
Reference in a new issue