Browse Source

[ok] Improve player regex

totalwebcasting
Sergey M․ 9 years ago
parent
commit
1e804244d0
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/odnoklassniki.py

+ 2
- 1
youtube_dl/extractor/odnoklassniki.py View File

@ -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…
Cancel
Save