cfangmeier / tuijam

A fancy TUI client for Google Play Music
MIT License
129 stars 9 forks source link

Crash on HTTP 403 while trying to play a song #34

Closed t1meshift closed 5 years ago

t1meshift commented 5 years ago

Google loves removing tracks from GPM regularly. When you try to play removed track that was in a queue, the API returns HTTP 403.

I think that the crash is a bit too hardcore way to notify a user that the track is not available now :)

cfangmeier commented 5 years ago

Can you post a stack trace of the error you saw so I can see where the error comes from, what the exception is, etc?

t1meshift commented 5 years ago

I'm unable to reproduce the crash right now, but I remember that API had returned HTML code with content like 403 Forbidden or something like that.

cfangmeier commented 5 years ago

Should be fixed, provided that the 403 is happening during the get_stream_url call.

5fdcf5a1af64cd87c5ad75c5df202716efc8e008

Note that there is a typo in the commit message, it should say "Fixes #34".