From: Sergey M․ Date: Sun, 28 Oct 2018 16:23:32 +0000 (+0700) Subject: [screencast] Improve extraction (closes #14617, closes #17990) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=a1d1c63678dcb075a8e741947c41abfee6c790a0;p=youtube-dl [screencast] Improve extraction (closes #14617, closes #17990) --- diff --git a/youtube_dl/extractor/screencast.py b/youtube_dl/extractor/screencast.py index c6554c905..69a0d01f3 100644 --- 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(?:(?!\1).)+)\1', + webpage, 'video url', default=None, group='url') if video_url is None: video_url = self._html_search_meta(