Unverified Commit 6a9cb295 authored by Yen Chi Hsuan's avatar Yen Chi Hsuan
Browse files

[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.
parent ca270371
version <unreleased>
* [extractor/common] Fix json dumping with --geo-bypass
* [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):
'[debug] Using fake IP %s (%s) as X-Forwarded-For.'
% (self._x_forwarded_for_ip, country_code.upper()))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment