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.21k stars 44 forks source link

Radio fails to start in YouTube Music #2469

Open sspaul1976 opened 2 weeks ago

sspaul1976 commented 2 weeks ago

What version of Music Assistant has the issue?

2.1.0b5

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

2024.5.1

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

The problem

When attempting to start a radio from a YouTube music, playlist, receive error, "Sample larger than population or is negative". This seems to happen in playlists where there is a single track.

How to reproduce

  1. Open MA
  2. Choose Playlist from YouTube Music
  3. Click arrow on blue Play button
  4. Select Start Radio
  5. Error follows...

Screenshot_20240614-125921

Music Providers

YouTube Music

Player Providers

Chromecast, DLNA

Full log output

No response

Additional information

No response

What version of Home Assistant Core are your running

2023.8.2

What type of installation are you running?

Home Assistant OS

On what type of hardware are you running?

ODROID

OzGav commented 2 weeks ago

@MarvinSchenkel

MarvinSchenkel commented 1 week ago

Fixed in https://github.com/music-assistant/server/pull/1401