From 7a1f3a1c707c97bf0748099490b515706ae4da50 Mon Sep 17 00:00:00 2001 From: "Lauren N. Liberda" Date: Wed, 5 Jul 2023 22:15:17 +0200 Subject: [PATCH] [extractor/tumblr] fix exception if no html tag --- yt_dlp/extractor/tumblr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/tumblr.py b/yt_dlp/extractor/tumblr.py index d73eb5c96..143eec6ba 100644 --- a/yt_dlp/extractor/tumblr.py +++ b/yt_dlp/extractor/tumblr.py @@ -449,7 +449,7 @@ def _real_extract(self, url): info_dict = { 'id': video_id, 'title': post_json.get('summary') or (blog if api_only else self._html_search_regex( - r'(?s)<title>(?P<title>.*?)(?: \| Tumblr)?', webpage, 'title')), + r'(?s)(?P<title>.*?)(?: \| Tumblr)?', webpage, 'title', default=blog)), 'description': description, 'uploader_id': uploader_id, 'uploader_url': f'https://{uploader_id}.tumblr.com/' if uploader_id else None,