aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-07-30 19:12:37 +0200
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2015-07-30 19:12:37 +0200
commit1f04873517e41d2f54fc4e65c46c08ba85b23010 (patch)
tree836dc486d83599a01a6075a997a2e70eecec30f3 /youtube_dl
parent799207e838e0404aaa5cb6658e41bef108aced16 (diff)
[viewster] Use 'compat_urllib_parse_unquote'
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/viewster.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/viewster.py b/youtube_dl/extractor/viewster.py
index 393b63618..65324d903 100644
--- a/youtube_dl/extractor/viewster.py
+++ b/youtube_dl/extractor/viewster.py
@@ -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,