diff options
author | Sergey M․ <dstftw@gmail.com> | 2018-05-02 07:18:01 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2018-05-02 07:20:59 +0700 |
commit | 5f95927a62a533b9e616abb5f1481cedeaa16a4a (patch) | |
tree | 13e1cbddf07dd4259211ede5df0d2705604ca5b1 /youtube_dl/extractor/go.py | |
parent | a93ce61bd5cbe7779e4eff0f8ab74a8a02211285 (diff) |
Improve geo bypass mechanism
* Introduce geo bypass context
* Add ability to bypass based on IP blocks in CIDR notation
* Introduce --geo-bypass-ip-block
Diffstat (limited to 'youtube_dl/extractor/go.py')
-rw-r--r-- | youtube_dl/extractor/go.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/go.py b/youtube_dl/extractor/go.py index 9c7b1bd37..e781405f2 100644 --- a/youtube_dl/extractor/go.py +++ b/youtube_dl/extractor/go.py @@ -123,7 +123,7 @@ class GoIE(AdobePassIE): 'adobe_requestor_id': requestor_id, }) else: - self._initialize_geo_bypass(['US']) + self._initialize_geo_bypass({'countries': ['US']}) entitlement = self._download_json( 'https://api.entitlement.watchabc.go.com/vp2/ws-secure/entitlement/2020/authorize.json', video_id, data=urlencode_postdata(data)) |