aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-09-02 21:38:56 +0600
committerSergey M․ <dstftw@gmail.com>2015-09-02 21:38:56 +0600
commit1e804244d062c7620bcc9498cba1c7d3d8bd8095 (patch)
tree4e1e2805d8878a5cf6ef0f48dd036a344118bff6 /youtube_dl
parent198492bbf0e497079158bdf9ff94df3c91d6f3b7 (diff)
[ok] Improve player regex
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/odnoklassniki.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/odnoklassniki.py b/youtube_dl/extractor/odnoklassniki.py
index 97900a4c3..4564fd0be 100644
--- a/youtube_dl/extractor/odnoklassniki.py
+++ b/youtube_dl/extractor/odnoklassniki.py
@@ -59,7 +59,8 @@ class OdnoklassnikiIE(InfoExtractor):
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']