-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Background
This issue solely affects local providers (eg, Plex, Filesystem, Jellyfin, etc.). If you are not using a local provider, please create a new issue.
For the action mass_queue.get_queue_items, this integration reaches out to Music Assistant and asks for the queue data. This is returned in a (much longer) version of the format below:
[
{
"queue_id": "d8:3a:dd:29:33:52",
"queue_item_id": "02fbc6f1173342538198b137c4a73b19",
"name": "Halsey - Nightmare",
"duration": 232,
"sort_index": 3,
...
"image": {
"type": "thumb",
"path": "https://resources.tidal.com/images/e522ef7e/0e06/450b/936a/74059a3f20b4/750x750.jpg",
"provider": "tidal",
"remotely_accessible": true
},
"index": 0,
"available": true
}
...
]
This integration will filter the data and select the image URL from the path above. However, for local hosts, this image path will often point either at a relative path on the drive (eg, artist/album/cover.png) or at a local path (eg, 192.168.1.2:1234/media/images/artist/album/cover.png).
This is problematic for a couple of reasons. Relative drive paths can almost never be accessed, even from the same machine. Local paths can't be accessed outside of your local network and, if you are using HTTPS to access Home Assistant, they can never be displayed.
However, Music Assistant allows for metadata providers. These, in theory, should fill in this missing data.
How to Help
Helping fill out this data is rather straightforward:
- Start a queue on one of your media players. Ensure it is not displaying any images.
- In Home Assistant, Navigate to the Developer Tools section and click on Template. Paste the below template, replacing
YOUR_MASS_PLAYERwith the Entity ID of the player:
{% set player = 'media_player.YOUR_MASS_PLAYER' %}
{{ state_attr(player, 'active_queue') }}
Copy the output. You'll need it for the next step.
- Navigate to the "Actions" tab and fill out the action form as below. Replace
YOUR_QUEUE_IDwith the output from Step 2 andYOUR_CONFIG_ENTRYwith the Music Assistant Queue Actions entry that you use.
- Action:
mass_queue.send_command - Command:
player_queues/items - Data:
queue_id: YOUR_QUEUE_ID
limit: 10- Config Entry ID:
YOUR_CONFIG_ENTRY
-
Press "Perform Action". Copy the response output and save it to a text file.
-
Reply to this issue using the template below. Upload the saved file to your issue.
Home Assistant Version: <Get this information from Settings - About>
Music Assistant Queue Actions Version: <Get this information from Settings - Devices & Services - Music Assistant Queue Actions>
Music Assistant Version: <Get this information from Music Assistant Settings - Core>
Music Providers: <Get this information from Music Assistant Settings - Music providers>
Metadata Providers: <Get this information from Music Assistant Settings - Metadata providers>
How often does this issue occur - every track, most tracks, some tracks, or only a few tracks?
Any other issues, questions, comments, or notes?
You can also further help by testing v0.6.2 - this update checks the different image keys for each item and uses the first which returns a URL which Music Assistant deemed to be accessible. Please note that this will not fix every instance - only those where the various providers were able to pull web-accessible images.