Skip to content

Commit

Permalink
feat: oauth capabilites (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmcdo29 authored Jul 30, 2023
2 parents 67a221f + d2b0149 commit e29097a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions mopidy_ytmusic/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ def __init__(self, config, audio):
self.oauth = True

if self.auth and not self.oauth:
self.api = YTMusic(self._ytmusicapi_auth_json)
self.api = YTMusic(auth=self._ytmusicapi_auth_json)
elif self.oauth:
self.api = YTMusic(self._ytmusicapi_oauth_json)
self.api = YTMusic(auth=self._ytmusicapi_oauth_json)
else:
self.api = YTMusic()

Expand Down
2 changes: 1 addition & 1 deletion mopidy_ytmusic/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def run(self, args, config):
else:
print("Updating via oauth, follow the instructions from ytmusicapi")
try:
print(YTMusic(path))
print(YTMusic(auth=path))
except Exception:
logger.exception("YTMusic setup failed")
return 1
Expand Down

0 comments on commit e29097a

Please sign in to comment.