[theplatform] allow passing geo bypass countries from other extractors
authorRemita Amine <remitamine@gmail.com>
Fri, 25 Dec 2020 20:16:36 +0000 (21:16 +0100)
committerRemita Amine <remitamine@gmail.com>
Fri, 25 Dec 2020 20:16:36 +0000 (21:16 +0100)
youtube_dl/extractor/theplatform.py

index 41bfbe80f48c7fa41638aadd53fe8769a783c6fe..adfe11e314212e9c9e50491c747f3560a0e32bfe 100644 (file)
@@ -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')