mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-05 17:43:37 +00:00
commit
b5f433b6c8
2 changed files with 5 additions and 5 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
|
||||
|
|
|
@ -136,9 +136,9 @@ class TVCache():
|
|||
|
||||
return []
|
||||
|
||||
def getRSSFeed(self, url, post_data=None):
|
||||
def getRSSFeed(self, url, post_data=None, request_headers=None):
|
||||
with RSSFeeds(self.providerID) as feed:
|
||||
data = feed.getRSSFeed(url, post_data)
|
||||
data = feed.getRSSFeed(url, post_data, request_headers)
|
||||
return data
|
||||
|
||||
def _translateTitle(self, title):
|
||||
|
|
Loading…
Reference in a new issue