Private GIT

Skip to content
Snippets Groups Projects
Select Git revision
1 result Searching

tvcache.py

Blame
    • Dustyn Gibson's avatar
      ddffe651
      Proxy and session fixes: · ddffe651
      Dustyn Gibson authored
      Move duplicate code to a new method, to set up a default set of session parameters
      Remove referer from header is not using proxy
      Add referer when using global proxy setting too, not just provider proxy
      use `with closing()` when reading from a stream based get, because we could return without reading all of the content
      No need to define self.session in providers, it's defined in generic __init__
      tvcache.getRSSFeed only proxied 1 scheme, use the url for both until we can add a sickbeard.HTTPS_PROXY_SETTING
      ddffe651
      History
      Proxy and session fixes:
      Dustyn Gibson authored
      Move duplicate code to a new method, to set up a default set of session parameters
      Remove referer from header is not using proxy
      Add referer when using global proxy setting too, not just provider proxy
      use `with closing()` when reading from a stream based get, because we could return without reading all of the content
      No need to define self.session in providers, it's defined in generic __init__
      tvcache.getRSSFeed only proxied 1 scheme, use the url for both until we can add a sickbeard.HTTPS_PROXY_SETTING
    tvcache.py 14.54 KiB