[odnoklassniki] Fix extraction (Closes #5671)

This commit is contained in:
Sergey M․ 2015-05-13 22:26:30 +06:00
parent 83880949a1
commit 372744c544

View file

@ -6,6 +6,7 @@
unified_strdate,
int_or_none,
qualities,
unescapeHTML,
)
@ -36,8 +37,8 @@ def _real_extract(self, url):
webpage = self._download_webpage(url, video_id)
player = self._parse_json(
self._search_regex(
r"OKVideo\.start\(({.+?})\s*,\s*'VideoAutoplay_player'", webpage, 'player'),
unescapeHTML(self._search_regex(
r'data-attributes="([^"]+)"', webpage, 'player')),
video_id)
metadata = self._parse_json(player['flashvars']['metadata'], video_id)