]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[odnoklassniki] Make URL explicit
authorSergey M․ <dstftw@gmail.com>
Mon, 25 May 2015 15:27:43 +0000 (21:27 +0600)
committerSergey M․ <dstftw@gmail.com>
Mon, 25 May 2015 15:27:43 +0000 (21:27 +0600)
youtube_dl/extractor/odnoklassniki.py

index 691f503f5452c567b47824e56e83edffcd94c84c..6c7149fe3859732978d34356f8c18aca14e74f63 100644 (file)
@@ -47,7 +47,8 @@ class OdnoklassnikiIE(InfoExtractor):
     def _real_extract(self, url):
         video_id = self._match_id(url)
 
-        webpage = self._download_webpage(url, video_id)
+        webpage = self._download_webpage(
+            'http://ok.ru/video/%s' % video_id, video_id)
 
         player = self._parse_json(
             unescapeHTML(self._search_regex(