sichuan-pepper
6 years ago
committed by
Sergey M․
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D
1 changed files with
8 additions and
0 deletions
-
youtube_dl/extractor/screencast.py
|
|
@ -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') |
|
|
|
|
|
|
|