diff options
| author | sichuan-pepper <huajiao.sichuan.pepper@gmail.com> | 2018-10-28 01:46:32 +0900 | 
|---|---|---|
| committer | Sergey M․ <dstftw@gmail.com> | 2018-10-28 23:26:30 +0700 | 
| commit | 1fafb329849e3f07e6a6e4141bcd4547e141745c (patch) | |
| tree | 2bc1e07f53e4b0841ca16b62e5e72ddba0dd08c1 /youtube_dl/extractor/screencast.py | |
| parent | c901cc38e50a47c9659db534e637ac4f6a54c450 (diff) | |
[screencast] Fix extraction (closes #14590)
Diffstat (limited to 'youtube_dl/extractor/screencast.py')
| -rw-r--r-- | youtube_dl/extractor/screencast.py | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/youtube_dl/extractor/screencast.py b/youtube_dl/extractor/screencast.py index 62a6a8337..c6554c905 100644 --- a/youtube_dl/extractor/screencast.py +++ b/youtube_dl/extractor/screencast.py @@ -91,6 +91,14 @@ class ScreencastIE(InfoExtractor):                      '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')          title = self._og_search_title(webpage, default=None) | 
