mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-10 00:25:06 +00:00
[extractor/tumblr] workaround gdpr consent page
This commit is contained in:
parent
9d1c75df0d
commit
f4ba2275f2
1 changed files with 3 additions and 1 deletions
|
@ -414,7 +414,9 @@ def _real_extract(self, url):
|
||||||
blog = blog_2 or blog_1
|
blog = blog_2 or blog_1
|
||||||
|
|
||||||
url = f'http://{blog}.tumblr.com/post/{video_id}'
|
url = f'http://{blog}.tumblr.com/post/{video_id}'
|
||||||
webpage, urlh = self._download_webpage_handle(url, video_id)
|
# whatsapp ua makes iab tcf shut the fuck up
|
||||||
|
webpage, urlh = self._download_webpage_handle(url, video_id, headers={
|
||||||
|
'User-Agent': 'WhatsApp/2.0'})
|
||||||
|
|
||||||
redirect_url = urlh.geturl()
|
redirect_url = urlh.geturl()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue