Skip to content

Commit

Permalink
Fix API requests when not signed in #1013
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Dec 5, 2024
1 parent 75f875f commit 2582451
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/lib/youtube_plugin/youtube/client/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -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': {
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2582451

Please sign in to comment.