Pārlūkot izejas kodu

[theplatform] allow passing geo bypass countries from other extractors

Remita Amine 4 gadi atpakaļ
vecāks
revīzija
2c312ab84a
1 mainītis faili ar 3 papildinājumiem un 0 dzēšanām
  1. 3 0
      youtube_dl/extractor/theplatform.py

+ 3 - 0
youtube_dl/extractor/theplatform.py

@@ -234,6 +234,9 @@ class ThePlatformIE(ThePlatformBaseIE, AdobePassIE):
 
 
     def _real_extract(self, url):
     def _real_extract(self, url):
         url, smuggled_data = unsmuggle_url(url, {})
         url, smuggled_data = unsmuggle_url(url, {})
+        self._initialize_geo_bypass({
+            'countries': smuggled_data.get('geo_countries'),
+        })
 
 
         mobj = re.match(self._VALID_URL, url)
         mobj = re.match(self._VALID_URL, url)
         provider_id = mobj.group('provider_id')
         provider_id = mobj.group('provider_id')