mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-29 05:32:00 +00:00
[screencast] Fix extraction (closes #14590)
This commit is contained in:
parent
c901cc38e5
commit
1fafb32984
1 changed files with 8 additions and 0 deletions
|
@ -90,6 +90,14 @@ class ScreencastIE(InfoExtractor):
|
||||||
r'src=(.*?)(?:$|&)', video_meta,
|
r'src=(.*?)(?:$|&)', video_meta,
|
||||||
'meta tag video URL', default=None)
|
'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:
|
if video_url is None:
|
||||||
raise ExtractorError('Cannot find video')
|
raise ExtractorError('Cannot find video')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue