mirror of
https://github.com/yt-dlp/yt-dlp
synced 2024-12-30 22:24:28 +01:00
[adobepass] use geo verification headers for all requests
This commit is contained in:
parent
b62985a9a5
commit
fb8e8b2d16
1 changed files with 6 additions and 0 deletions
|
@ -1308,6 +1308,12 @@ class AdobePassIE(InfoExtractor):
|
||||||
_USER_AGENT = 'Mozilla/5.0 (X11; Linux i686; rv:47.0) Gecko/20100101 Firefox/47.0'
|
_USER_AGENT = 'Mozilla/5.0 (X11; Linux i686; rv:47.0) Gecko/20100101 Firefox/47.0'
|
||||||
_MVPD_CACHE = 'ap-mvpd'
|
_MVPD_CACHE = 'ap-mvpd'
|
||||||
|
|
||||||
|
def _download_webpage_handle(self, *args, **kwargs):
|
||||||
|
headers = kwargs.get('headers', {})
|
||||||
|
headers.update(self.geo_verification_headers())
|
||||||
|
kwargs['headers'] = headers
|
||||||
|
return super(AdobePassIE, self)._download_webpage_handle(*args, **kwargs)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def _get_mvpd_resource(provider_id, title, guid, rating):
|
def _get_mvpd_resource(provider_id, title, guid, rating):
|
||||||
channel = etree.Element('channel')
|
channel = etree.Element('channel')
|
||||||
|
|
Loading…
Reference in a new issue