]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[ok] Extract correct data-options (Closes #6726)
authorSergey M․ <dstftw@gmail.com>
Wed, 2 Sep 2015 15:36:22 +0000 (21:36 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 2 Sep 2015 15:36:22 +0000 (21:36 +0600)
youtube_dl/extractor/odnoklassniki.py

index f552e6f7e6d49dd5ba0c20b74c9520866e4ab059..97900a4c393c3011366cf7c0b5e7183c2a02f100 100644 (file)
@@ -59,7 +59,7 @@ class OdnoklassnikiIE(InfoExtractor):
 
         player = self._parse_json(
             unescapeHTML(self._search_regex(
-                r'data-options="([^"]+)"', webpage, 'player')),
+                r'data-options="([^"]+%s[^"]+)"' % video_id, webpage, 'player')),
             video_id)
 
         flashvars = player['flashvars']