Closed linsomniac closed 4 months ago
_input_dict
is what you're passing in via oauth.json
Fix your oauth.json
to not contain filepath
and you're good to go
There is no "filepath" in my "oauth.json", and if there were it is not something that I would have put in there, I created it with "ytmusicapi oauth".
[N] (spotify2ytmusic-py3.10) sean@seans-laptop ~/p/spotify_to_ytmusic (main) [1]> grep -i file oauth.json
[I] (spotify2ytmusic-py3.10) sean@seans-laptop ~/p/spotify_to_ytmusic (main) [1]>
Describe the bug I haven't used my session in days or more, and I believe it's going to refresh the token, but (with version 1.5.2 and also experienced on 1.4.2), I'm getting the following traceback:
The RefreshingToken() is getting created with a
self._input_dict
that contains a "filepath": "oauth.json" element.If I remove the filepath from the dict, it seems to succeed, but I don't know the code well enough to know if that's a bit naive.
Adding above the "RefreshingToken" above (ytmusic.py line 139) which reads:
Seemed to work for me.
To Reproduce Steps to reproduce the behavior:
YTMusic("oauth.json")