mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-30 04:08:01 +01:00
[ok] Improve player regex
This commit is contained in:
parent
198492bbf0
commit
1e804244d0
@ -59,7 +59,8 @@ class OdnoklassnikiIE(InfoExtractor):
|
|||||||
|
|
||||||
player = self._parse_json(
|
player = self._parse_json(
|
||||||
unescapeHTML(self._search_regex(
|
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)
|
video_id)
|
||||||
|
|
||||||
flashvars = player['flashvars']
|
flashvars = player['flashvars']
|
||||||
|
Loading…
Reference in New Issue
Block a user