diff options
author | Sergey M․ <[email protected]> | 2018-05-02 07:18:01 +0700 |
---|---|---|
committer | Sergey M․ <[email protected]> | 2018-05-02 07:20:59 +0700 |
commit | 5f95927a62a533b9e616abb5f1481cedeaa16a4a (patch) | |
tree | 13e1cbddf07dd4259211ede5df0d2705604ca5b1 /youtube_dl/YoutubeDL.py | |
parent | a93ce61bd5cbe7779e4eff0f8ab74a8a02211285 (diff) | |
download | youtube-dl-5f95927a62a533b9e616abb5f1481cedeaa16a4a.tar.gz youtube-dl-5f95927a62a533b9e616abb5f1481cedeaa16a4a.zip |
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/YoutubeDL.py')
-rwxr-xr-x | youtube_dl/YoutubeDL.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py index ad3598805..f1a359011 100755 --- a/youtube_dl/YoutubeDL.py +++ b/youtube_dl/YoutubeDL.py @@ -286,6 +286,9 @@ class YoutubeDL(object): Two-letter ISO 3166-2 country code that will be used for explicit geographic restriction bypassing via faking X-Forwarded-For HTTP header (experimental) + geo_bypass_ip_block: + IP range in CIDR notation that will be used similarly to + geo_bypass_country (experimental) The following options determine which downloader is picked: external_downloader: Executable of the external downloader to call. |