diff options
author | Sergey M․ <dstftw@gmail.com> | 2015-05-13 22:26:30 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2015-05-13 22:26:30 +0600 |
commit | 372744c544ec3de1b35583e7d6fc2cbc4cc39f3a (patch) | |
tree | 567e03c0424d437e330ae12904d5520187c79e05 /youtube_dl/extractor | |
parent | 83880949a17586cd9db59272b42dd43e43b02e2e (diff) |
[odnoklassniki] Fix extraction (Closes #5671)
Diffstat (limited to 'youtube_dl/extractor')
-rw-r--r-- | youtube_dl/extractor/odnoklassniki.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/youtube_dl/extractor/odnoklassniki.py b/youtube_dl/extractor/odnoklassniki.py index 155d0ee6a..fbc521d1a 100644 --- a/youtube_dl/extractor/odnoklassniki.py +++ b/youtube_dl/extractor/odnoklassniki.py @@ -6,6 +6,7 @@ from ..utils import ( unified_strdate, int_or_none, qualities, + unescapeHTML, ) @@ -36,8 +37,8 @@ class OdnoklassnikiIE(InfoExtractor): 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) |