Skip to content

Commit

Permalink
[screencast] Improve extraction (closes #14617, closes #17990)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Oct 28, 2018
1 parent 1fafb32 commit a1d1c63
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/extractor/screencast.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,8 @@ def _real_extract(self, url):

if video_url is None:
video_url = self._html_search_regex(
r'"MediaContentUrl":"([^"]+)"', webpage, 'media content url', default=None)
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(
Expand Down

0 comments on commit a1d1c63

Please sign in to comment.