diff options
Diffstat (limited to 'youtube_dl/extractor/screencast.py')
-rw-r--r-- | youtube_dl/extractor/screencast.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/youtube_dl/extractor/screencast.py b/youtube_dl/extractor/screencast.py index 62a6a8337..69a0d01f3 100644 --- a/youtube_dl/extractor/screencast.py +++ b/youtube_dl/extractor/screencast.py @@ -91,6 +91,15 @@ class ScreencastIE(InfoExtractor): 'meta tag video URL', default=None) if video_url is None: + video_url = self._html_search_regex( + 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( + 'og:video', webpage, default=None) + + if video_url is None: raise ExtractorError('Cannot find video') title = self._og_search_title(webpage, default=None) |