From c4e689e453961145610cd6075cf54901ea78a6b0 Mon Sep 17 00:00:00 2001 From: guming0 <87445738+guming0@users.noreply.github.com> Date: Wed, 14 Jul 2021 15:21:09 -0400 Subject: [PATCH] Match newline in title and video_formats Fixes matching title and video_formats by matching newline with `.` --- youtube_dl/extractor/weibo.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/weibo.py b/youtube_dl/extractor/weibo.py index 621df5b54..eeb0f0825 100644 --- a/youtube_dl/extractor/weibo.py +++ b/youtube_dl/extractor/weibo.py @@ -74,10 +74,10 @@ class WeiboIE(InfoExtractor): url, video_id, note='Revisiting webpage') title = self._html_search_regex( - r'(.+?)', webpage, 'title') + r'(.+?)', webpage, 'title', flags=re.DOTALL) video_formats = compat_parse_qs(self._search_regex( - r'video-sources=\\\"(.+?)\"', webpage, 'video_sources')) + r'video-sources=\\\"(.+?)\"', webpage, 'video_sources', flags=re.DOTALL)) formats = [] supported_resolutions = (480, 720)