def getRSSFeed(self, url): handlers = [] if sickrage.srCore.srConfig.PROXY_SETTING: sickrage.srCore.srLogger.debug("Using global proxy for url: " + url) scheme, address = urllib2.splittype(sickrage.srCore.srConfig.PROXY_SETTING) address = sickrage.srCore.srConfig.PROXY_SETTING if scheme else 'http://' + sickrage.srCore.srConfig.PROXY_SETTING handlers = [urllib2.ProxyHandler({'http': address, 'https': address})] return getFeed(url, handlers=handlers)
def getRSSFeed(self, url, params=None): handlers = [] if sickrage.srCore.srConfig.PROXY_SETTING: sickrage.srCore.srLogger.debug("Using global proxy for url: " + url) scheme, address = urllib2.splittype(sickrage.srCore.srConfig.PROXY_SETTING) address = sickrage.srCore.srConfig.PROXY_SETTING if scheme else 'http://' + sickrage.srCore.srConfig.PROXY_SETTING handlers = [urllib2.ProxyHandler({'http': address, 'https': address})] return getFeed(url, params=params, handlers=handlers)
def getRSSFeed(self, url, params=None): handlers = [] if sickrage.app.config.proxy_setting: sickrage.app.log.debug("Using global proxy for url: " + url) scheme, address = urllib2.splittype(sickrage.app.config.proxy_setting) address = sickrage.app.config.proxy_setting if scheme else 'http://' + sickrage.app.config.proxy_setting handlers = [urllib2.ProxyHandler({'http': address, 'https': address})] return getFeed(url, params=params, handlers=handlers)
def getRSSFeed(self, url): handlers = [] if sickrage.PROXY_SETTING: sickrage.LOGGER.debug("Using global proxy for url: " + url) scheme, address = urllib2.splittype(sickrage.PROXY_SETTING) address = sickrage.PROXY_SETTING if scheme else 'http://' + sickrage.PROXY_SETTING handlers = [urllib2.ProxyHandler({'http': address, 'https': address})] self.provider.headers.update({'Referer': address}) elif 'Referer' in self.provider.headers: self.provider.headers.pop('Referer') return getFeed(url, request_headers=self.provider.headers, handlers=handlers)
def getRSSFeed(self, url, params=None): handlers = [] if sickrage.app.config.proxy_setting: sickrage.app.log.debug("Using global proxy for url: " + url) scheme, address = urllib2.splittype( sickrage.app.config.proxy_setting) address = sickrage.app.config.proxy_setting if scheme else 'http://' + sickrage.app.config.proxy_setting handlers = [ urllib2.ProxyHandler({ 'http': address, 'https': address }) ] return getFeed(url, params=params, handlers=handlers)