Browse Source
[extractor/common] Fix json dumping with --geo-bypass
The line "[debug] Using fake IP %s (%s) as X-Forwarded-For." was printed
to stdout even with -j/-J, which breaks the resultant JSON.
master
Yen Chi Hsuan
7 years ago
No known key found for this signature in database
GPG Key ID: 7F902A182457CA23
2 changed files with
4 additions and
1 deletions
-
ChangeLog
-
youtube_dl/extractor/common.py
|
|
@ -1,5 +1,8 @@ |
|
|
|
version <unreleased> |
|
|
|
|
|
|
|
Core |
|
|
|
* [extractor/common] Fix json dumping with --geo-bypass |
|
|
|
|
|
|
|
Extractors |
|
|
|
* [bilibili] Fix extraction of videos with double quotes in titles (#13387) |
|
|
|
|
|
|
|
|
|
@ -420,7 +420,7 @@ class InfoExtractor(object): |
|
|
|
if country_code: |
|
|
|
self._x_forwarded_for_ip = GeoUtils.random_ipv4(country_code) |
|
|
|
if self._downloader.params.get('verbose', False): |
|
|
|
self._downloader.to_stdout( |
|
|
|
self._downloader.to_screen( |
|
|
|
'[debug] Using fake IP %s (%s) as X-Forwarded-For.' |
|
|
|
% (self._x_forwarded_for_ip, country_code.upper())) |
|
|
|
|
|
|
|