From: Remita Amine Date: Fri, 25 Dec 2020 20:16:36 +0000 (+0100) Subject: [theplatform] allow passing geo bypass countries from other extractors X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=2c312ab84a853f196223fd2618a543c806d59bcb;p=youtube-dl [theplatform] allow passing geo bypass countries from other extractors --- 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')