mirror of
https://github.com/SickGear/SickGear.git
synced 2025-01-21 17:13:42 +00:00
commit
b5f433b6c8
2 changed files with 5 additions and 5 deletions
|
@ -36,7 +36,7 @@ class RSSFeeds:
|
||||||
|
|
||||||
self.fc.purge(age)
|
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:
|
if not self.fc:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ class RSSFeeds:
|
||||||
if post_data:
|
if post_data:
|
||||||
url += urllib.urlencode(post_data)
|
url += urllib.urlencode(post_data)
|
||||||
|
|
||||||
feed = self.fc.fetch(url)
|
feed = self.fc.fetch(url, False, False, request_headers)
|
||||||
if not feed:
|
if not feed:
|
||||||
logger.log(u"RSS Error loading URL: " + url, logger.ERROR)
|
logger.log(u"RSS Error loading URL: " + url, logger.ERROR)
|
||||||
return
|
return
|
||||||
|
@ -59,4 +59,4 @@ class RSSFeeds:
|
||||||
logger.log(u"No RSS items found using URL: " + url, logger.WARNING)
|
logger.log(u"No RSS items found using URL: " + url, logger.WARNING)
|
||||||
return
|
return
|
||||||
|
|
||||||
return feed
|
return feed
|
||||||
|
|
|
@ -136,9 +136,9 @@ class TVCache():
|
||||||
|
|
||||||
return []
|
return []
|
||||||
|
|
||||||
def getRSSFeed(self, url, post_data=None):
|
def getRSSFeed(self, url, post_data=None, request_headers=None):
|
||||||
with RSSFeeds(self.providerID) as feed:
|
with RSSFeeds(self.providerID) as feed:
|
||||||
data = feed.getRSSFeed(url, post_data)
|
data = feed.getRSSFeed(url, post_data, request_headers)
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def _translateTitle(self, title):
|
def _translateTitle(self, title):
|
||||||
|
|
Loading…
Reference in a new issue