aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-02-21 23:09:41 +0700
committerSergey M․ <dstftw@gmail.com>2017-02-21 23:09:41 +0700
commit336a76551b92db1c040cbf3c4a9b1857e125ad45 (patch)
treeccfe6e3afa7bdca52e5e68ac5a9d63ec3f947146
parentdc0a869e5ee7a75218a759706bb11f17c4de6b72 (diff)
[extractor/common] Do not quit _initialize_geo_bypass on empty countries
-rw-r--r--youtube_dl/extractor/common.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
index 6d4789d96..a34fbbc9b 100644
--- a/youtube_dl/extractor/common.py
+++ b/youtube_dl/extractor/common.py
@@ -393,7 +393,6 @@ class InfoExtractor(object):
is selected and a random IP belonging to this country is generated. This
IP will be passed as X-Forwarded-For HTTP header in all subsequent
HTTP requests.
- Method does nothing if no countries are specified.
This method will be used for initial geo bypass mechanism initialization
during the instance initialization with _GEO_COUNTRIES.
@@ -402,8 +401,6 @@ class InfoExtractor(object):
information is not available beforehand (e.g. obtained during
extraction) or due to some another reason.
"""
- if not countries:
- return
if not self._x_forwarded_for_ip:
country_code = self._downloader.params.get('geo_bypass_country', None)
# If there is no explicit country for geo bypass specified and