mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-01-23 08:15:38 +00:00
[nebula] Improve performance by avoiding redirect
This commit is contained in:
parent
1317a43a6a
commit
30362440dc
1 changed files with 1 additions and 1 deletions
|
@ -171,7 +171,7 @@ class NebulaIE(InfoExtractor):
|
||||||
"""
|
"""
|
||||||
Requests a Zype access token from the Nebula API.
|
Requests a Zype access token from the Nebula API.
|
||||||
"""
|
"""
|
||||||
user_object = self._call_nebula_api('/auth/user', video_id, nebula_token, note='Retrieving Zype access token')
|
user_object = self._call_nebula_api('/auth/user/', video_id, nebula_token, note='Retrieving Zype access token')
|
||||||
access_token = try_get(user_object, lambda x: x['zype_auth_info']['access_token'], compat_str)
|
access_token = try_get(user_object, lambda x: x['zype_auth_info']['access_token'], compat_str)
|
||||||
if not access_token:
|
if not access_token:
|
||||||
raise ExtractorError('Unable to extract Zype access token from Nebula API authentication endpoint')
|
raise ExtractorError('Unable to extract Zype access token from Nebula API authentication endpoint')
|
||||||
|
|
Loading…
Reference in a new issue