Skip to content

Commit

Permalink
Merge pull request #10 from mtsanovv/dev
Browse files Browse the repository at this point in the history
Fix YouTube API connection failure
  • Loading branch information
mtsanovv committed Aug 22, 2022
2 parents 54db2bf + 80ce2e8 commit 77889ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/youspotube/api/youtube.py
Expand Up @@ -11,7 +11,7 @@ def __init__(self, api_key):
raise ConfigurationError("Test connection to YouTube API failed: %s" % str(e))

def _init_connection(self, api_key):
self.connection = build('youtube', 'v3', developerKey=api_key)
self.connection = build('youtube', 'v3', developerKey=api_key, static_discovery=False)

def _test_connection(self):
request = self.connection.channels().list(
Expand Down

0 comments on commit 77889ef

Please sign in to comment.