From 30362440dcbf35f2ccce3b5c24b4d4c5ee809c92 Mon Sep 17 00:00:00 2001 From: Henrik Heimbuerger Date: Tue, 2 Jun 2020 04:57:37 +0200 Subject: [PATCH] [nebula] Improve performance by avoiding redirect --- youtube_dl/extractor/nebula.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/nebula.py b/youtube_dl/extractor/nebula.py index 0ce229ad5..9a2828e19 100644 --- a/youtube_dl/extractor/nebula.py +++ b/youtube_dl/extractor/nebula.py @@ -171,7 +171,7 @@ class NebulaIE(InfoExtractor): """ 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) if not access_token: raise ExtractorError('Unable to extract Zype access token from Nebula API authentication endpoint')