1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-03 07:02:56 +08:00

[screencast] Improve extraction (closes #14617, closes #17990)

This commit is contained in:
Sergey M․ 2018-10-28 23:23:32 +07:00 committed by Ni Ndogo
parent cdf763e9ae
commit 59862fcd65

View File

@ -92,7 +92,8 @@ class ScreencastIE(InfoExtractor):
if video_url is None:
video_url = self._html_search_regex(
r'"MediaContentUrl":"([^"]+)"', webpage, 'media content url', default=None)
r'MediaContentUrl["\']\s*:(["\'])(?P<url>(?:(?!\1).)+)\1',
webpage, 'video url', default=None, group='url')
if video_url is None:
video_url = self._html_search_meta(