Skip to content

Commit

Permalink
[screencast] Fix extraction (closes #14590)
Browse files Browse the repository at this point in the history
  • Loading branch information
sichuan-pepper authored and dstftw committed Oct 28, 2018
1 parent c901cc3 commit 1fafb32
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions youtube_dl/extractor/screencast.py
Expand Up @@ -90,6 +90,14 @@ def _real_extract(self, url):
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')

Expand Down

0 comments on commit 1fafb32

Please sign in to comment.