Skip to content

Commit

Permalink
Fix not using user API key when not logged in #585, #587
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Feb 23, 2024
1 parent 546c98e commit d1e02e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion resources/lib/youtube_plugin/youtube/client/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -1809,7 +1809,8 @@ def api_request(self,
client = self.build_client(version, client_data)

if 'key' in client['params'] and not client['params']['key']:
client['params']['key'] = self._config_tv['key']
client['params']['key'] = (self._config.get('key')
or self._config_tv['key'])

if method != 'POST' and 'json' in client:
del client['json']
Expand Down

0 comments on commit d1e02e6

Please sign in to comment.