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.41k stars 52 forks source link

Youtube Music not working #2607

Closed miroslavpetrov closed 4 months ago

miroslavpetrov 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?

No response

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 play a song from youtube music to any speaker I get this error:

2024-07-10 22:59:44.101 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: get_throttling_function_name: could not find match for multiple

Its an old issue with pytube but it doesn't seem to be fixed

How to reproduce

Just try to play any song from youtube music.

Music Providers

Youtube music

Player Providers

Airplay, UPNP

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2024.5.4

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

Alternative

OzGav commented 4 months ago

Can you try the beta?

moswald14 commented 4 months ago

this just happened to me too after a reboot. switching to beta fixed it, it seems

MarvinSchenkel commented 4 months ago

We completely rewrote the logic to resolve streaming urls in beta to prevent instabilities like this from happening. Should hit stable in a week or so.

MarvinSchenkel commented 4 months ago

~Added the 'workaround' fix. Can you restart the addon and see if it works?~ This does not work, it requires a new release. Please either run beta for now or wait for the next release in order to get YTM working.

miroslavpetrov commented 4 months ago

@OzGav I just installed the Beta version and Youtube Music is working fine.

OzGav commented 4 months ago

Thanks we will close this. When the 2.1 stable is released soon you can switch back if you wish