From 2582451f00c4acbc35537edd7b42f80855136c16 Mon Sep 17 00:00:00 2001 From: MoojMidge <56883549+MoojMidge@users.noreply.github.com> Date: Fri, 6 Dec 2024 08:19:04 +1100 Subject: [PATCH] Fix API requests when not signed in #1013 --- resources/lib/youtube_plugin/youtube/client/youtube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/youtube_plugin/youtube/client/youtube.py b/resources/lib/youtube_plugin/youtube/client/youtube.py index c68cdd160..e16fa080b 100644 --- a/resources/lib/youtube_plugin/youtube/client/youtube.py +++ b/resources/lib/youtube_plugin/youtube/client/youtube.py @@ -48,7 +48,7 @@ class YouTube(LoginClient): }, }, 'v3': { - '_auth_required': True, + '_auth_requested': True, 'url': 'https://www.googleapis.com/youtube/v3/{_endpoint}', 'method': None, 'headers': { @@ -2198,7 +2198,7 @@ def api_request(self, abort = False if not no_login: - client_data.setdefault('_auth_required', True) + client_data.setdefault('_auth_requested', True) # a config can decide if a token is allowed if self._access_token and self._config.get('token-allowed', True): client_data['_access_token'] = self._access_token