projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ee78d6
)
[theplatform] allow passing geo bypass countries from other extractors
author
Remita Amine
<remitamine@gmail.com>
Fri, 25 Dec 2020 20:16:36 +0000
(21:16 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Fri, 25 Dec 2020 20:16:36 +0000
(21:16 +0100)
youtube_dl/extractor/theplatform.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/theplatform.py
b/youtube_dl/extractor/theplatform.py
index 41bfbe80f48c7fa41638aadd53fe8769a783c6fe..adfe11e314212e9c9e50491c747f3560a0e32bfe 100644
(file)
--- 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')