music-assistant / hass-music-assistant

Turn your Home Assistant instance into a jukebox, hassle free streaming of your favorite media to Home Assistant media players.
Apache License 2.0
1.39k stars 51 forks source link

Error when trying to play Songs from Spotify #2640

Closed chicken305 closed 4 months ago

chicken305 commented 4 months ago

What version of Music Assistant has the issue?

2.0.7

What version of the Home Assistant Integration have you got installed?

2024.6.2

Have you tried everything in the Troubleshooting FAQ and reviewed the Open and Closed Issues and Discussions to resolve this yourself?

The problem

When i try to search a song and click play on it (from spotify) i get the following message. image Also playing my liked songs wont work if i just click play, but when i click a singular song, it does work.

Also Sorting songs does not seem to work properly: image

How to reproduce

Click play on the liked Songs Playlist from Spotify

Music Providers

Spotify

Player Providers

HA MediaPlayers

Full log output

log.txt

Additional information

No response

What version of Home Assistant Core are your running

2024.7.0

What type of installation are you running?

Home Assistant Container

On what type of hardware are you running?

Raspberry Pi

OzGav commented 4 months ago

Can you see if this is still a problem with the last beta?

japyjaap commented 4 months ago

I'm having the same issue with 2.1.0 RC 2 installed and HA core 2024.7.2

A bit of additional info: some Spotify playlist are greyed out and can't be started. Some are not greyed out and can be started.

chicken305 commented 4 months ago

it seems to be working better after clearing all the caches ( had one error before clearing the caches)

OzGav commented 4 months ago

Better or fixed?

OzGav commented 4 months ago

Greyed out means they aren’t available on the provider

japyjaap commented 4 months ago

Through the search I can find the same playlist and it plays correctly. I can't remove the greyed out playlist. When I try to add the playlist from the search to the library it doesn't show (probably because it's still in there).

OzGav commented 4 months ago

I would probably try removing Spotify and see if all those playlists are removed and the re-add

chicken305 commented 4 months ago

it Is fixed.

Just had a random occurence where a song restarted in the middle like 2-3 times

also when i have a Queue and select a song to "Play Now" it plays that song but shows the next song from the Queue in the player, and the Song i picked to play now gets sorted into the "played" Tab And one snippet for example 22 seconds long played twice and restarted once and after that started playing the song i skipped by Playing now that snippet

chicken305 commented 4 months ago

yea no something is broken. it does not finish songs even when i just pick one album to play. the next song starting to early then and bricking it after finishing. While using the song length of the previous song, if it plays at all automatically from the queue. image

after prematurely starting the next song nothing else plays anymore on its own. If i press play again the first song plays again, but now overflowing the timer of the second song: image if i press Next Song, then the third Song starts playing, but also does not finish

OzGav commented 4 months ago

Do you have other than a HA media player?

chicken305 commented 4 months ago

what do you mean exactly?

OzGav commented 4 months ago

In your report you only indicate you have tried Ha media players. These aren’t the best as they rely on code outside of MA. Do you have other player types to try?

chicken305 commented 4 months ago

as far as i could test it now before sleep it seems to be working when using airplay for example. So it seems to be the ha media player. Still very weird behaviour

OzGav commented 4 months ago

Per the docs if there is a native player available you need to use that so continue using the native Airplay provider. As for the other issues they should be fixed in the latest beta. That will get promoted to stable soon.