[odnoklassniki] Use compat_urllib_parse_unquote
authorSergey M․ <dstftw@gmail.com>
Fri, 17 Jul 2015 17:45:00 +0000 (23:45 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 17 Jul 2015 17:45:00 +0000 (23:45 +0600)
youtube_dl/extractor/odnoklassniki.py

index 6c7149fe3859732978d34356f8c18aca14e74f63..215ffe87b55db126300f0c18c98d9c5bfd920ed7 100644 (file)
@@ -2,7 +2,7 @@
 from __future__ import unicode_literals
 
 from .common import InfoExtractor
-from ..compat import compat_urllib_parse
+from ..compat import compat_urllib_parse_unquote
 from ..utils import (
     unified_strdate,
     int_or_none,
@@ -62,7 +62,7 @@ class OdnoklassnikiIE(InfoExtractor):
             metadata = self._parse_json(metadata, video_id)
         else:
             metadata = self._download_json(
-                compat_urllib_parse.unquote(flashvars['metadataUrl']),
+                compat_urllib_parse_unquote(flashvars['metadataUrl']),
                 video_id, 'Downloading metadata JSON')
 
         movie = metadata['movie']