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 7, 2024
1 parent 0506ebe commit f74cf3d
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 @@ -49,7 +49,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 @@ -2277,7 +2277,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 f74cf3d

Please sign in to comment.