commit a1d1c63678dcb075a8e741947c41abfee6c790a0
parent 1fafb329849e3f07e6a6e4141bcd4547e141745c
Author: Sergey M․ <dstftw@gmail.com>
Date:   Sun, 28 Oct 2018 23:23:32 +0700

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

Diffstat:
Myoutube_dl/extractor/screencast.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/youtube_dl/extractor/screencast.py b/youtube_dl/extractor/screencast.py @@ -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(