[nebula] Improve performance by avoiding redirect

This commit is contained in:
Henrik Heimbuerger 2020-06-02 04:57:37 +02:00
parent 1317a43a6a
commit 30362440dc

View File

@ -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')