[viewster] Use 'compat_urllib_parse_unquote'
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 30 Jul 2015 17:12:37 +0000 (19:12 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Thu, 30 Jul 2015 17:12:37 +0000 (19:12 +0200)
youtube_dl/extractor/viewster.py

index 393b63618a9a872e2b5313e33a6c73eff5a5dccb..65324d90398844750e1e505b575146fe1f47b6a1 100644 (file)
@@ -5,6 +5,7 @@ from .common import InfoExtractor
 from ..compat import (
     compat_urllib_request,
     compat_urllib_parse,
+    compat_urllib_parse_unquote,
 )
 from ..utils import (
     determine_ext,
@@ -74,7 +75,7 @@ class ViewsterIE(InfoExtractor):
         # Get 'api_token' cookie
         self._request_webpage(url, video_id)
         cookies = self._get_cookies(url)
-        self._AUTH_TOKEN = compat_urllib_parse.unquote(cookies['api_token'].value)
+        self._AUTH_TOKEN = compat_urllib_parse_unquote(cookies['api_token'].value)
 
         info = self._download_json(
             'https://public-api.viewster.com/search/%s' % video_id,