0
0
Fork 0
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:
Lauren N. Liberda 2023-07-05 22:12:54 +02:00
parent 9d1c75df0d
commit f4ba2275f2
No known key found for this signature in database
GPG key ID: 734C629FD04BD319

View file

@ -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()