aome510 / spotify-player

A Spotify player in the terminal with full feature parity
MIT License
3.38k stars 147 forks source link

Music keeps playing automatically continuously #557

Open orangeMangoDimz opened 1 week ago

orangeMangoDimz commented 1 week ago

Describe the bug When opening spotify-player. the music plays automatically continuously.

If the previous music played is from an album, the music will cycle to the next music, without playing the current music, and it happens continuously. If the previous music is only 1 music, the music cannot be played and is stuck at duration 0:00.

The picture I attached is for the case of the last 1 music I played.

I have also checked on spotify app, and it still stuck at 0:00 duration.

To Reproduce it happened right after I opened the spotify-player app.

Expected behaviour I wish this app would run normally like it used to

Log and backtrace

# spotify-player-24-09-02-17-23.backtrace
File: spotify-player-24-09-02-17-23.backtrace   <EMPTY>

# spotify-player-24-09-02-17-23.log
# the latest log
2024-09-02T10:28:19.346739Z  INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("3MEYFivt6b
ilQ9q9mFWZ4g"), new_track_id: TrackId("3MEYFivt6bilQ9q9mFWZ4g") }
2024-09-02T10:28:20.919567Z  INFO spotify_player::streaming: Got a new player event: EndOfTrack { track_id: TrackId("3MEYFivt6bi
lQ9q9mFWZ4g") }
2024-09-02T10:28:20.919808Z  INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("3MEYFivt6b
ilQ9q9mFWZ4g"), new_track_id: TrackId("3MEYFivt6bilQ9q9mFWZ4g") }
2024-09-02T10:28:22.510903Z  INFO spotify_player::streaming: Got a new player event: EndOfTrack { track_id: TrackId("3MEYFivt6bi
lQ9q9mFWZ4g") }
2024-09-02T10:28:22.511258Z  INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("3MEYFivt6b
ilQ9q9mFWZ4g"), new_track_id: TrackId("3MEYFivt6bilQ9q9mFWZ4g") }
2024-09-02T10:28:24.318942Z  INFO spotify_player::streaming: Got a new player event: EndOfTrack { track_id: TrackId("3MEYFivt6bi
lQ9q9mFWZ4g") }
2024-09-02T10:28:24.319169Z  INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("3MEYFivt6b
ilQ9q9mFWZ4g"), new_track_id: TrackId("3MEYFivt6bilQ9q9mFWZ4g") }
2024-09-02T10:28:25.781832Z  INFO spotify_player::streaming: Got a new player event: EndOfTrack { track_id: TrackId("3MEYFivt6bi
lQ9q9mFWZ4g") }
2024-09-02T10:28:25.782264Z  INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("3MEYFivt6b
ilQ9q9mFWZ4g"), new_track_id: TrackId("3MEYFivt6bilQ9q9mFWZ4g") }
2024-09-02T10:28:27.150808Z  INFO spotify_player::streaming: Got a new player event: EndOfTrack { track_id: TrackId("3MEYFivt6bi
lQ9q9mFWZ4g") }
2024-09-02T10:28:27.151216Z  INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("3MEYFivt6b
ilQ9q9mFWZ4g"), new_track_id: TrackId("3MEYFivt6bilQ9q9mFWZ4g") }
2024-09-02T10:28:28.153319Z  INFO spotify_player::streaming: Got a new player event: EndOfTrack { track_id: TrackId("3MEYFivt6bi
lQ9q9mFWZ4g") }
2024-09-02T10:28:28.153636Z  INFO spotify_player::streaming: Got a new player event: Changed { old_track_id: TrackId("3MEYFivt6b
ilQ9q9mFWZ4g"), new_track_id: TrackId("3MEYFivt6bilQ9q9mFWZ4g") }

Screenshots Screenshot from 2024-09-02 17-05-57 image

Environment

Additional context None

pawelkuzia commented 1 week ago

I have the same issue on Arch, version 0.19.1, from AUR with full features enabled.

j1-dev commented 1 week ago

I'm in the same situation as @pawelkuzia

aome510 commented 1 week ago

I couldn't reproduce on my laptop (MacOS). Did it happen before or just recently? This could be a Spotify API server issue or something related, I would wait for a few days more to see if it's persistent.

aNNiMON commented 1 week ago

Same issue on Windows

https://github.com/librespot-org/librespot/issues/1322

masroof-maindak commented 1 week ago

I couldn't reproduce on my laptop (MacOS). Did it happen before or just recently? This could be a Spotify API server issue or something related, I would wait for a few days more to see if it's persistent.

Just started today. I think this is the case. I haven't updated my build as of recent so I doubt it's a problem with spotify-player.

aome510 commented 1 week ago

Same issue on Windows

librespot-org/librespot#1322

Thanks, it seems there is a workaround mentioned in the thread.

orangeMangoDimz commented 1 week ago

For now, try this way: https://github.com/librespot-org/librespot/issues/972#issuecomment-2320943137

mloskot commented 1 week ago

I've been suffering from the same issue for two days now, using spotify_player 0.19.1, and clearing cache/data, re-authenticating does not help. This screencast 'visualises' the player living its own life :)

Screencast from 2024-09-04 13-33-14.webm

The workaround referenced in https://github.com/aome510/spotify-player/issues/557#issuecomment-2325470461 does not work for me. Interestingly, ncspot works fine.

Cloweeee commented 1 week ago

It seems that the dev version of librespot does work. I'd try to upgrade the dependency for spotify-player but I'm not familiar with rust/cargo.

https://github.com/librespot-org/librespot/issues/1322#issuecomment-2329702406