0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-27 03:03:01 +00:00

[ok] Improve player regex

This commit is contained in:
Sergey M․ 2015-09-02 21:38:56 +06:00
parent 198492bbf0
commit 1e804244d0

View file

@ -59,7 +59,8 @@ def _real_extract(self, url):
player = self._parse_json(
unescapeHTML(self._search_regex(
r'data-options="([^"]+%s[^"]+)"' % video_id, webpage, 'player')),
r'data-options=(?P<quote>["\'])(?P<player>{.+?%s.+?})(?P=quote)' % video_id,
webpage, 'player', group='player')),
video_id)
flashvars = player['flashvars']