[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
1 changed files with 3 additions and 1 deletions

View File

@ -414,7 +414,9 @@ class TumblrIE(InfoExtractor):
blog = blog_2 or blog_1
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()