simon-weber / Autoplaylists-for-Google-Music

Adds autoplaylists, aka iTunes "smart playlists", to Google Music.
https://autoplaylists.simon.codes
MIT License
94 stars 18 forks source link

reloads can loop forever if auth is broken #166

Closed simon-weber closed 6 years ago

simon-weber commented 6 years ago

In some odd scenarios, autoplaylists is unable to get auth at all (I haven't figured out why, but it might be for GM user ids that start with 0). This means the initial attempt to get the library 403s, triggering a deauth and a reload, which triggers the initial attempt again. . .

I could either store the last reload time in localstorage, or just prevent reloads within a certain time period of starting. I was planning to add this eventually anyways, though I was planning to wait until I added other autoreload situations.

simon-weber commented 6 years ago

I figured out the 403s: these days Google requires you to have a card on file before you can upload music. After I added one, things started working as expected.