jpochyla / psst

Fast and multi-platform Spotify client with native GUI
MIT License
8.54k stars 218 forks source link

Can not play some songs #250

Open maffelbaffel opened 2 years ago

maffelbaffel commented 2 years ago

Describe the bug I've got some songs in my playlist that can not be played. Not sure if its specific to a song or what causes this issue. Removing ~/.cache/Psst did not help.

2022-01-08T08:37:08Z INFO  psst_gui::data::config] loading config: "/home/michael/.config/Psst/config.json"
[2022-01-08T08:37:08Z ERROR psst_gui::webapi::client] failed to read local tracks: No such file or directory (os error 2)
[2022-01-08T08:37:08Z INFO  psst_core::audio::output] using audio device: "default"
[2022-01-08T08:37:08Z INFO  psst_core::cache] using cache: "/home/michael/.cache/Psst"
[2022-01-08T08:37:08Z INFO  psst_core::audio::output] opening output stream: StreamConfig { channels: 2, sample_rate: SampleRate(44100), buffer_size: Default }
[2022-01-08T08:37:08Z INFO  psst_gui::data::config] saved config: "/home/michael/.config/Psst/config.json"
[2022-01-08T08:37:08Z INFO  psst_core::session::access_token] access token expired, requesting
[2022-01-08T08:37:10Z ERROR psst_core::player] skipping, error while loading: Audio file not found
[2022-01-08T08:37:10Z ERROR psst_core::player] skipping, error while loading: Audio file not found
[2022-01-08T08:37:10Z ERROR psst_core::player] stopping, error while loading: Audio file not found
[2022-01-08T08:37:10Z ERROR psst_core::player] skipping, error while loading: Audio file not found
[2022-01-08T08:37:10Z ERROR psst_core::player] skipping, error while loading: Audio file not found
[2022-01-08T08:37:10Z ERROR psst_core::player] stopping, error while loading: Audio file not found
[2022-01-08T08:38:14Z ERROR psst_core::player] skipping, error while loading: Audio file not found
[2022-01-08T08:38:14Z ERROR psst_core::player] skipping, error while loading: Audio file not found
[2022-01-08T08:38:14Z ERROR psst_core::player] stopping, error while loading: Audio file not found
[2022-01-08T08:38:14Z ERROR psst_core::player] skipping, error while loading: Audio file not found
[2022-01-08T08:38:14Z ERROR psst_core::player] skipping, error while loading: Audio file not found
[2022-01-08T08:38:14Z ERROR psst_core::player] stopping, error while loading: Audio file not found

Environment

jpochyla commented 2 years ago

This is most probably caused by non-Vorbis audio files. MP3 playback is not supported yet.

roderickvd commented 2 years ago

Which track is this? I'd like to test MP3 support in the latest librespot.

jpochyla commented 2 years ago

I've added untested MP3 playback support in ace3ca1, but the track ID would help @maffelbaffel!

maffelbaffel commented 2 years ago

Uff can't seem to find the track anymore as it was in a Discover Weekly playlist which got rotated. I won't pull and compile and come back to you if I get the issue again. Thank you!

maffelbaffel commented 2 years ago

Found a song which can not be played: https://open.spotify.com/track/4pXG8Q82L8WvypAm5Wo86y Experimental mp3 fix also does not seem to fix the issue.

Edit: Searching for that song using the search input does indeed play that song. It just does not work when playing from the Release Radar playlist. Weird.

Edit 2: After removing the .cache/Psst directory I am now also able to play the song from the Release Radar playlist. Not sure why that did not work last time I tried.

maffelbaffel commented 2 years ago

Keep running into this issue. Maybe this helps, the following is logged when a song can not be played:

Jan 30 11:50:21 michael-XPS-15-9510 psst.desktop[23075]: [2022-01-30T10:50:21Z INFO  psst_core::player::file] blocked at 6144
Jan 30 11:50:21 michael-XPS-15-9510 psst.desktop[23075]: [2022-01-30T10:50:21Z INFO  psst_core::player::file] blocked at 16528
Jan 30 11:50:21 michael-XPS-15-9510 psst.desktop[23075]: [2022-01-30T10:50:21Z INFO  psst_core::player::file] blocked at 38332
Jan 30 11:50:21 michael-XPS-15-9510 psst.desktop[23075]: [2022-01-30T10:50:21Z INFO  psst_core::player::file] blocked at 54716
HookedBehemoth commented 2 years ago

Getting this issue with this newly released album E.g. this song: https://open.spotify.com/track/20pp47ZnD7H98mqAZhlS8Z Songs released as singles previously work fine.

Built from master just now and the issue persists.

arch-btw commented 1 year ago

I've been trying to debug this issue.

It seems that newly released tracks face this error and deleting ~/.cache/psst doesn't help unless the song is about 2-3 weeks old. So after that time period, deleting ~/.cache/psst makes the track play.

Maybe it gets moved to a different CDN after 2-3 weeks?

Example: https://open.spotify.com/track/0GfCR4T6WOErZOw1557ln7

DaftVadeR commented 1 year ago

Also getting this issue - an example of a track I can't play presently is https://open.spotify.com/track/2SaB1ED5tbeJp4YaBdl7Yz. It happens a lot in the Release Radar playlist, affecting maybe 30-40% of it, possibly due to what @arch-btw said about it happening with newer tracks. Loving the app otherwise 💪