Browse Source

[screencast] Improve extraction (closes #14617, closes #17990)

master
Sergey M․ 6 years ago
parent
commit
a1d1c63678
No known key found for this signature in database GPG Key ID: 2C393E0F18A9236D
1 changed files with 2 additions and 1 deletions
  1. 3
      youtube_dl/extractor/screencast.py

3
youtube_dl/extractor/screencast.py

@ -92,7 +92,8 @@ class ScreencastIE(InfoExtractor):
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(

Loading…
Cancel
Save