1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-06-23 11:56:20 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
guming0
fd5601a7f1
Merge c4e689e453961145610cd6075cf54901ea78a6b0 into 3eb8d22ddb8982ca4fb56bb7a8d6517538bf14c6 2025-04-01 10:00:28 +02:00
guming0
c4e689e453
Match newline in title and video_formats
Fixes matching title and video_formats by matching newline with `.`
2021-07-14 15:21:09 -04:00

View File

@ -74,10 +74,10 @@ class WeiboIE(InfoExtractor):
url, video_id, note='Revisiting webpage') url, video_id, note='Revisiting webpage')
title = self._html_search_regex( title = self._html_search_regex(
r'<title>(.+?)</title>', webpage, 'title') r'<title>(.+?)</title>', webpage, 'title', flags=re.DOTALL)
video_formats = compat_parse_qs(self._search_regex( video_formats = compat_parse_qs(self._search_regex(
r'video-sources=\\\"(.+?)\"', webpage, 'video_sources')) r'video-sources=\\\"(.+?)\"', webpage, 'video_sources', flags=re.DOTALL))
formats = [] formats = []
supported_resolutions = (480, 720) supported_resolutions = (480, 720)