-
-
Notifications
You must be signed in to change notification settings - Fork 51
Description
What version of Music Assistant has the issue?
2.7.b19
How is the MA server installed?
Home Assistant OS Addon
Carefully read the Troubleshooting FAQ and confirm that
- I have examined the logs and tried to resolve this issue
- I have fixed any errors in the logs that relate to tags
- I am not running MA across a VPN, VLAN, subnet, behind a firewall, or using local SSL or have any other complex network setup
- I have disabled tool such as AdGuard, Pi-hole or pfSense and retested
- I have checked my network setup to ensure mDNS/multicast is not being blocked
- If using HA, I have confirmed the internal URL is set correctly
- I have tried a wired connection for issues related to interrupted or poor playback quality
- If the problem relates to a device then I have checked the device settings
- If it is a frontend issue, I have tried a different widely used browser
- I have reviewed the applicable player or music provider documentation
- For voice problems, I have sought help elsewhere before returning here
- For playback problems, I have recycled power to the physical device
- I have tried restarting MA and rebooting the host
Have you reviewed the Open and Closed Issues and Discussions to resolve this yourself?
- Yes
The problem
When attempting to play an album via its direct URI (ytmusic://album/MPREb_OJkxCUCP5hF), the retrieval of album metadata and associated tracks fails. This indicates a recent or specific change in the JSON structure by YouTube Music for this type of "album" content. It is the Album "Ducktales"
How to reproduce
Trigger Album Fetch: Use the Music Assistant WebSocket API, the Home Assistant music_assistant.play_media service, or the MA web interface to request the full metadata/tracks for the problematic album ID.
Execute Command (Example HA Service Call): Call the service to retrieve the album details.
Service: music_assistant.play_media
Data:
media_id: 'ytmusic://album/MPREb_OJkxCUCP5hF'
media_type: album
Target any active MA Player
Alternatively, the core MA function mass.music.albums.get_provider_item(item_id='MPREb_OJkxCUCP5hF', provider_instance_id_or_domain='ytmusic') can be called internally.
Observe Failure: The call will fail with the detailed KeyError stack trace shown below, originating from ytmusicapi/parsers/playlists.py.
Music Providers
YTMusic
Player Providers
Chromecast
Full log output
d5369777_music_assistant_beta_2025-12-05T05-24-17.509Z.log
Additional information
Ducktales
What version of Home Assistant Core (if used) are your running
2025.12.0
What type of installation are you running?
Home Assistant OS
On what type of hardware are you running?
Linux
Have you included ALL of the information specified in the Troubleshooting FAQ or explained why you cannot
- Yes