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

Error when adding Radio station #3065

Open de666 opened 1 week ago

de666 commented 1 week ago

What version of Music Assistant has the issue?

2.3.0b33

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

2024.10.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 adding the this radio station with the following streaming url http://stream.srg-ssr.ch/m/rsc_it/aacp_96 Music Assistant shows the following error and the station can not be added 'dict' object has no attribute 'startswith'

How to reproduce

Music Providers

Filesystem (local) Music Assistant RadioBrowser

Player Providers

Chromecast Snapcast HomeAssistant

Full log output

2024-10-23 08:40:12.419 ERROR (MainThread) [music_assistant.webserver] Error handling message: music/radios/get_radio: 'dict' object has no attribute 'startswith'

Additional information

It works well with other radio stations like this http://swingfm.ice.infomaniak.ch/swingfm-128.mp3

What version of Home Assistant Core are your running

2024.10.3

What type of installation are you running?

Home Assistant Container

On what type of hardware are you running?

Linux

marcelveldt commented 1 week ago

I cant reproduce this - anyone else ?

OzGav commented 6 days ago

No just added it and it works fine

de666 commented 6 days ago

Can I enable some sort of debug log level to help you?