mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-17 01:25:11 +00:00
[viewster] Use 'compat_urllib_parse_unquote'
This commit is contained in:
parent
799207e838
commit
1f04873517
1 changed files with 2 additions and 1 deletions
|
@ -5,6 +5,7 @@
|
||||||
from ..compat import (
|
from ..compat import (
|
||||||
compat_urllib_request,
|
compat_urllib_request,
|
||||||
compat_urllib_parse,
|
compat_urllib_parse,
|
||||||
|
compat_urllib_parse_unquote,
|
||||||
)
|
)
|
||||||
from ..utils import (
|
from ..utils import (
|
||||||
determine_ext,
|
determine_ext,
|
||||||
|
@ -74,7 +75,7 @@ def _real_extract(self, url):
|
||||||
# Get 'api_token' cookie
|
# Get 'api_token' cookie
|
||||||
self._request_webpage(url, video_id)
|
self._request_webpage(url, video_id)
|
||||||
cookies = self._get_cookies(url)
|
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(
|
info = self._download_json(
|
||||||
'https://public-api.viewster.com/search/%s' % video_id,
|
'https://public-api.viewster.com/search/%s' % video_id,
|
||||||
|
|
Loading…
Reference in a new issue