projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8388094
)
[odnoklassniki] Fix extraction (Closes #5671)
author
Sergey M․
<dstftw@gmail.com>
Wed, 13 May 2015 16:26:30 +0000
(22:26 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Wed, 13 May 2015 16:26:30 +0000
(22:26 +0600)
youtube_dl/extractor/odnoklassniki.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/odnoklassniki.py
b/youtube_dl/extractor/odnoklassniki.py
index 155d0ee6a834fa6fb551900e0d0c35dcf0007a5c..fbc521d1aae02077ae62c5cd0a6c5f9cdcff014a 100644
(file)
--- 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)