mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-26 04:02:11 +00:00
[odnoklassniki] Fix extraction (Closes #5671)
This commit is contained in:
parent
83880949a1
commit
372744c544
1 changed files with 3 additions and 2 deletions
|
@ -6,6 +6,7 @@ from ..utils import (
|
||||||
unified_strdate,
|
unified_strdate,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
qualities,
|
qualities,
|
||||||
|
unescapeHTML,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,8 +37,8 @@ class OdnoklassnikiIE(InfoExtractor):
|
||||||
webpage = self._download_webpage(url, video_id)
|
webpage = self._download_webpage(url, video_id)
|
||||||
|
|
||||||
player = self._parse_json(
|
player = self._parse_json(
|
||||||
self._search_regex(
|
unescapeHTML(self._search_regex(
|
||||||
r"OKVideo\.start\(({.+?})\s*,\s*'VideoAutoplay_player'", webpage, 'player'),
|
r'data-attributes="([^"]+)"', webpage, 'player')),
|
||||||
video_id)
|
video_id)
|
||||||
|
|
||||||
metadata = self._parse_json(player['flashvars']['metadata'], video_id)
|
metadata = self._parse_json(player['flashvars']['metadata'], video_id)
|
||||||
|
|
Loading…
Reference in a new issue