librespot-org / librespot

Open Source Spotify client library
MIT License
4.79k stars 598 forks source link

Track not available on librespot 0.4.2 #1214

Closed AndyFx12 closed 11 months ago

AndyFx12 commented 11 months ago

Describe the bug Some tracks can´t be played by librespot 0.4.2

To reproduce Steps to reproduce the behavior:

  1. Launch librespot as speaker
  2. play track https://open.spotify.com/intl-de/track/78l28Qh5KPffobDRRmEOTl -> Nothing will be played.

Log [2023-10-28T06:01:03Z DEBUG librespot_connect::spirc] Frame has 1 tracks [2023-10-28T06:01:03Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] [2023-10-28T06:01:03Z DEBUG librespot_playback::player] command=SetAutoNormaliseAsAlbum(true) [2023-10-28T06:01:03Z DEBUG librespot_playback::player] command=Load(SpotifyId { id: 311594141766050084648485189939730500207, audio_type: Track }, false, 3588) [2023-10-28T06:01:03Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] [2023-10-28T06:01:04Z DEBUG librespot_connect::spirc] kMessageTypeNotify "andy-mint" 702b7bad5d461af7a9573506f3b81ef4e124f7e4 1960782455 1698472863585 kPlayStatusPause [2023-10-28T06:01:04Z WARN librespot_playback::player] <spotify:track:78l28Qh5KPffobDRRmEOTl> is not available [2023-10-28T06:01:04Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 311594141766050084648485189939730500207, audio_type: Track }>: () [2023-10-28T06:01:04Z DEBUG librespot_connect::spirc] At track 2 of 1 <"spotify:album:40ults6w02vFoDQft1AVoI"> update [true] [2023-10-28T06:01:04Z DEBUG librespot_connect::spirc] Looping around back to start, repeat is false [2023-10-28T06:01:04Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] [2023-10-28T06:01:04Z DEBUG librespot_playback::player] command=Load(SpotifyId { id: 311594141766050084648485189939730500207, audio_type: Track }, false, 0) [2023-10-28T06:01:04Z TRACE librespot_connect::spirc] Sending status to server: [kPlayStatusPause] [2023-10-28T06:01:04Z DEBUG librespot_core::mercury] unknown subscription uri=social-connect/v2/session_update [2023-10-28T06:01:05Z WARN librespot_playback::player] <spotify:track:78l28Qh5KPffobDRRmEOTl> is not available [2023-10-28T06:01:05Z WARN librespot_playback::player] Skipping to next track, unable to load track <SpotifyId { id: 311594141766050084648485189939730500207, audio_type: Track }>: ()

Host (what you are running librespot on):

Additional context Tried with rAudio and spotifyd on ArchLinux, RPi-3B, too. Same behaviour.

regards, Andy

kingosticks commented 11 months ago

Log A full log so we may trace your problem (launch librespot with --verbose). Format the log as code.

We need this bit. Especially the version. Reproducing problems in other programs using the librespot library is a lot more effort.

kingosticks commented 11 months ago

play track https://open.spotify.com/intl-de/album/40ults6w02vFoDQft1AVoI?si=lJizSJvATrqofxSRprXXQg

Also, that's not a track. That is an album. Can you play the actual track https://open.spotify.com/track/78l28Qh5KPffobDRRmEOTl ?

AndyFx12 commented 11 months ago

I've updated first post - even "plain" librespot don't play some songs (rare). Of course I meant this example-track: https://open.spotify.com/intl-de/track/78l28Qh5KPffobDRRmEOTl?si=6c15afad74334e74 Logfile: librespot.log

kingosticks commented 11 months ago

Great. And just to check, do they play in the official client in your region?

AndyFx12 commented 11 months ago

Yes. Official client plays them fine.

AndyFx12 commented 11 months ago

Surprisingly, track plays fine, now. Without any changes on my system it works as expected. strange