summary refs log tree commit diff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2020-12-25 21:16:36 +0100
committerRemita Amine <remitamine@gmail.com>2020-12-25 21:16:36 +0100
commit2c312ab84a853f196223fd2618a543c806d59bcb (patch)
treed59ee86fb2614b557259db9e9e168e207e1c3d1f
parent0ee78d62d5d98d30f5b26e76504660adae01bd19 (diff)
downloadyoutube-dl-2c312ab84a853f196223fd2618a543c806d59bcb.tar.gz
youtube-dl-2c312ab84a853f196223fd2618a543c806d59bcb.tar.xz
youtube-dl-2c312ab84a853f196223fd2618a543c806d59bcb.zip
[theplatform] allow passing geo bypass countries from other extractors
-rw-r--r--youtube_dl/extractor/theplatform.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/theplatform.py b/youtube_dl/extractor/theplatform.py
index 41bfbe80f..adfe11e31 100644
--- a/youtube_dl/extractor/theplatform.py
+++ b/youtube_dl/extractor/theplatform.py
@@ -234,6 +234,9 @@ class ThePlatformIE(ThePlatformBaseIE, AdobePassIE):
 
     def _real_extract(self, url):
         url, smuggled_data = unsmuggle_url(url, {})
+        self._initialize_geo_bypass({
+            'countries': smuggled_data.get('geo_countries'),
+        })
 
         mobj = re.match(self._VALID_URL, url)
         provider_id = mobj.group('provider_id')