refactor YTMusicBase, improve oauth doc (#727)

* refactor YTMusicBase, improve oauth doc

* fix recursion issue

* fix bugs, fix coverage, add session test
This commit is contained in:
sigma67 2025-01-19 14:37:31 +01:00 • committed by GitHub
commit a004bed436
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 135 additions and 99 deletions

View file

@ -24,7 +24,8 @@ After you have created the authentication JSON, you can instantiate the class:
.. code-block:: python
from ytmusicapi import YTMusic
ytmusic = YTMusic("oauth.json")
ytmusic = YTMusic("browser.json") # or, alternatively
ytmusic = YTMusic("oauth.json", oauth_credentials=OAuthCredentials(client_id=client_id, client_secret=client_secret)
With the :code:`ytmusic` instance you can now perform authenticated requests: