]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[screencast] Improve extraction (closes #14617, closes #17990)
authorSergey M․ <dstftw@gmail.com>
Sun, 28 Oct 2018 16:23:32 +0000 (23:23 +0700)
committerSergey M․ <dstftw@gmail.com>
Sun, 28 Oct 2018 16:26:30 +0000 (23:26 +0700)
youtube_dl/extractor/screencast.py

index c6554c905d03318ff4b3507bc9ba5c6020bcd891..69a0d01f39c24f9fdcef0d31dd4d9d7a2f082c85 100644 (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(