[screencast] Fix extraction (closes #14590)
authorsichuan-pepper <huajiao.sichuan.pepper@gmail.com>
Sat, 27 Oct 2018 16:46:32 +0000 (01:46 +0900)
committerSergey M․ <dstftw@gmail.com>
Sun, 28 Oct 2018 16:26:30 +0000 (23:26 +0700)
youtube_dl/extractor/screencast.py

index 62a6a8337ccf5d247a38be29cf93b5b72f36dfd7..c6554c905d03318ff4b3507bc9ba5c6020bcd891 100644 (file)
@@ -90,6 +90,14 @@ class ScreencastIE(InfoExtractor):
                     r'src=(.*?)(?:$|&)', video_meta,
                     'meta tag video URL', default=None)
 
+        if video_url is None:
+            video_url = self._html_search_regex(
+                r'"MediaContentUrl":"([^"]+)"', webpage, 'media content url', default=None)
+
+        if video_url is None:
+            video_url = self._html_search_meta(
+                'og:video', webpage, default=None)
+
         if video_url is None:
             raise ExtractorError('Cannot find video')