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 1/2] 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 From 29a93400181fed4c618a367763f51d58ed4a2636 Mon Sep 17 00:00:00 2001 From: MoojMidge <56883549+MoojMidge@users.noreply.github.com> Date: Fri, 6 Dec 2024 08:22:29 +1100 Subject: [PATCH 2/2] Version bump v7.1.1.5 --- addon.xml | 2 +- changelog.txt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/addon.xml b/addon.xml index a661ccc34..ccb082774 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + diff --git a/changelog.txt b/changelog.txt index 4655d741a..021e6acf8 100644 --- a/changelog.txt +++ b/changelog.txt @@ -1,4 +1,4 @@ -## v7.1.1.4 +## v7.1.1.5 ### Fixed - Fix http server not listening on any interface if listen IP is 0.0.0.0 #927 - Standardise return type of LoginClient.refresh_token #932 @@ -42,6 +42,7 @@ - Fix processing of "q" and "channelId" search query params #1004 - Fix errors with progress dialogs in Kodi 18 #1000 - Fix remote watch history not updating #1008 +- Fix API requests when not signed in #1013 ### Changed - Improve display and update of bookmarks