about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2018-10-28 23:23:32 +0700
committerSergey M․ <dstftw@gmail.com>2018-10-28 23:26:30 +0700
commita1d1c63678dcb075a8e741947c41abfee6c790a0 (patch)
tree180c5ce15e6346fd508cb51cc539cfd55edcb6a5
parent1fafb329849e3f07e6a6e4141bcd4547e141745c (diff)
downloadyoutube-dl-a1d1c63678dcb075a8e741947c41abfee6c790a0.tar.gz
youtube-dl-a1d1c63678dcb075a8e741947c41abfee6c790a0.tar.xz
youtube-dl-a1d1c63678dcb075a8e741947c41abfee6c790a0.zip
[screencast] Improve extraction (closes #14617, closes #17990)
-rw-r--r--youtube_dl/extractor/screencast.py3
1 files changed, 2 insertions, 1 deletions
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<url>(?:(?!\1).)+)\1',
+                webpage, 'video url', default=None, group='url')
 
         if video_url is None:
             video_url = self._html_search_meta(