Closed ashish-yadav11 closed 8 months ago
Describe the bug I can't launch YTMusic instance by say: ytmusic = YTMusic(oauthfile). It gives the following error:
ytmusic = YTMusic(oauthfile)
Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib/python3.11/site-packages/ytmusicapi/ytmusic.py", line 138, in __init__ self._token = RefreshingToken( ^^^^^^^^^^^^^^^^ TypeError: RefreshingToken.__init__() got an unexpected keyword argument 'filepath'
This error started coming in after the update to version 1.4.
To Reproduce Steps to reproduce the behavior:
from ytmusicapi import YTMusic oauthfile = 'path to oauth file' ytmusic = YTMusic(auth=oauthfile)
Additional context It works fine without the auth argument.
nevermind, I guess the format was changed, got it fixed, just had to remove filepath from the dict (or just rerun ytmusicapi auth)!
ytmusicapi auth
Describe the bug I can't launch YTMusic instance by say:
ytmusic = YTMusic(oauthfile)
. It gives the following error:This error started coming in after the update to version 1.4.
To Reproduce Steps to reproduce the behavior:
Additional context It works fine without the auth argument.