Separate issue - playlists.
I have been trying to work out how to play a playlist, and have found mentions in the documentation and several examples of spotify playlists, I have not come across any example for a playlist of local files.
I have tried a couple of approaches to play local playlists that work in Music Assistant. Not sure what is relevant here, so trying to dump all the related info…
I have used the HA Storage option to map my _Media network share into the HA /media folder as
And my Mini Media Player Card Configuration is:
type: custom:mini-media-player
entity: media_player.kitchen_2
volume_stateless: false
toggle_power: false
shortcuts:
columns: 2
align_text: left
buttons:
- name: Il Volo - The Best of 10 Years playlist
type: playlist
id: >-
media-source://media_source/local/_Media/Music/Popera/Il Volo/The Best
of 10 Years/Il Volo - The Best of 10 Years.m3u
- name: Il Volo - The Best of 10 Years service
type: service
id: media_player.play_media
data:
entity_id: media_player.kitchen_2
media_content_id: >-
media-source://media_source/local/_Media/Music/Popera/Il Volo/The Best
of 10 Years/Il Volo - The Best of 10 Years.m3u
media_content_type: audio/x-mpegurl
- name: Il Volo - The Best of 10 Years web
icon: mdi:cat
type: service
id: media_player.play_media
data:
entity_id: media_player.kitchen_2
media_content_id: >-
http://192.168.1.98:8098/media/_Media/Music/Popera/Il Volo/The Best of
10 Years/Il Volo - The Best of 10 Years.m3u
media_content_type: audio/x-mpegurl
- name: Il Volo - Il Mondo
icon: mdi:music
type: music
id: >-
media-source://media_source/local/_Media/Music/Popera/Il Volo/The Best
of 10 Years/01-Il Mondo.mp3
Result for all three “best of 10 years” entries is:
In Music Assistant this playlist does show and play the component files proving that the .m3u file is correct.
and the .M3U file contains
#EXTM3U
#EXTINF:261,Il Volo - Il Mondo
01-Il Mondo.mp3
#EXTINF:220,Il Volo - 'O Sole Mio
02-'O Sole Mio.mp3
#EXTINF:243,Il Volo - Surrender (Torna A Surriento)
03-Surrender (Torna A Surriento).mp3
#EXTINF:292,Il Volo - Smile
04-Smile.mp3
#EXTINF:330,Il Volo - Caruso
05-Caruso.mp3
#EXTINF:263,Il Volo - Un Amore Cosi Grande
06-Un Amore Cosi Grande.mp3
#EXTINF:269,Il Volo - Granada
07-Granada.mp3
#EXTINF:235,Il Volo - My Way
08-My Way.mp3
#EXTINF:225,Il Volo - Grande Amore
09-Grande Amore.mp3
#EXTINF:226,Il Volo - Nel Blu, Dipinto Di Blu (Volare)
10-Nel Blu, Dipinto Di Blu (Volare).mp3
#EXTINF:211,Il Volo - Turandot: Nessun Dorma
11-Turandot Nessun Dorma.mp3
#EXTINF:191,Il Volo - La Traviata: Libiamo Ne'lieti Calici
12-La Traviata Libiamo Ne'lieti Calici.mp3
Last but not least, the end of the Music Assistant Log file:
2024-06-21 20:50:59.786 INFO (MainThread) [music_assistant.streams] Start Queue Flow stream for Queue Kitchen - crossfade: False
2024-06-21 20:50:59.802 INFO (MainThread) [music_assistant.streams] Start Queue Flow stream for Queue Kitchen - crossfade: False
2024-06-21 20:51:00.323 INFO (MainThread) [music_assistant.streams] Start Queue Flow stream for Queue Kitchen - crossfade: False
2024-06-21 20:51:21.392 WARNING (MainThread) [music_assistant.player_queues] Skipping http://192.168.1.98:8123/media/local/_Media/Music/Popera/Il%20Volo/The%20Best%20of%2010%20Years/Il%20Volo%20-%20The%20Best%20of%2010%20Years.m3u?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI4MTIxMWEzZjM5ZTc0Y2E2OTE4ZDg4NTE5YmVkNmQ1NSIsInBhdGgiOiIvbWVkaWEvbG9jYWwvX01lZGlhL011c2ljL1BvcGVyYS9JbCBWb2xvL1RoZSBCZXN0IG9mIDEwIFllYXJzL0lsIFZvbG8gLSBUaGUgQmVzdCBvZiAxMCBZZWFycy5tM3UiLCJwYXJhbXMiOltdLCJpYXQiOjE3MTg5NjcwODEsImV4cCI6MTcxOTA1MzQ4MX0.wC7ywBZymNKqC4G7pPt384NRVheHuy2Ox5OI2DgecKA: Unable to retrieve info for http://192.168.1.98:8123/media/local/_Media/Music/Popera/Il%20Volo/The%20Best%20of%2010%20Years/Il%20Volo%20-%20The%20Best%20of%2010%20Years.m3u?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI4MTIxMWEzZjM5ZTc0Y2E2OTE4ZDg4NTE5YmVkNmQ1NSIsInBhdGgiOiIvbWVkaWEvbG9jYWwvX01lZGlhL011c2ljL1BvcGVyYS9JbCBWb2xvL1RoZSBCZXN0IG9mIDEwIFllYXJzL0lsIFZvbG8gLSBUaGUgQmVzdCBvZiAxMCBZZWFycy5tM3UiLCJwYXJhbXMiOltdLCJpYXQiOjE3MTg5NjcwODEsImV4cCI6MTcxOTA1MzQ4MX0.wC7ywBZymNKqC4G7pPt384NRVheHuy2Ox5OI2DgecKA: Invalid data found when processing input
2024-06-21 20:51:21.392 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: No playable items found
2024-06-21 21:00:38.825 INFO (MainThread) [music_assistant.music] Sync task for Music Assistant completed
2024-06-21 21:01:18.698 INFO (MainThread) [music_assistant.music] Sync task for Filesystem (remote share) completed
2024-06-21 21:01:18.698 INFO (MainThread) [music_assistant.music] Sync task for RadioBrowser completed
2024-06-21 21:10:54.129 WARNING (MainThread) [music_assistant.player_queues] Skipping /media/_Media/Music/Popera/Il Volo/The Best of 10 Years/Il Volo - The Best of 10 Years.m3u: Unable to retrieve info for /media/_Media/Music/Popera/Il Volo/The Best of 10 Years/Il Volo - The Best of 10 Years.m3u: Invalid data found when processing input
2024-06-21 21:10:54.129 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: No playable items found
2024-06-21 21:11:05.580 WARNING (MainThread) [music_assistant.player_queues] Skipping http://192.168.1.98:8123/media/local/media/_Media/Music/Popera/Il%20Volo/The%20Best%20of%2010%20Years/Il%20Volo%20-%20The%20Best%20of%2010%20Years.m3u?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI4MTIxMWEzZjM5ZTc0Y2E2OTE4ZDg4NTE5YmVkNmQ1NSIsInBhdGgiOiIvbWVkaWEvbG9jYWwvbWVkaWEvX01lZGlhL011c2ljL1BvcGVyYS9JbCBWb2xvL1RoZSBCZXN0IG9mIDEwIFllYXJzL0lsIFZvbG8gLSBUaGUgQmVzdCBvZiAxMCBZZWFycy5tM3UiLCJwYXJhbXMiOltdLCJpYXQiOjE3MTg5NjgyNjUsImV4cCI6MTcxOTA1NDY2NX0.54qn6ueJBqEZO8n9CToqb1WeiPZN_T_z8gKmY49Eqio: Unable to retrieve info for http://192.168.1.98:8123/media/local/media/_Media/Music/Popera/Il%20Volo/The%20Best%20of%2010%20Years/Il%20Volo%20-%20The%20Best%20of%2010%20Years.m3u?authSig=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiI4MTIxMWEzZjM5ZTc0Y2E2OTE4ZDg4NTE5YmVkNmQ1NSIsInBhdGgiOiIvbWVkaWEvbG9jYWwvbWVkaWEvX01lZGlhL011c2ljL1BvcGVyYS9JbCBWb2xvL1RoZSBCZXN0IG9mIDEwIFllYXJzL0lsIFZvbG8gLSBUaGUgQmVzdCBvZiAxMCBZZWFycy5tM3UiLCJwYXJhbXMiOltdLCJpYXQiOjE3MTg5NjgyNjUsImV4cCI6MTcxOTA1NDY2NX0.54qn6ueJBqEZO8n9CToqb1WeiPZN_T_z8gKmY49Eqio: Server returned 404 Not Found
2024-06-21 21:11:05.581 ERROR (MainThread) [music_assistant.webserver] Error handling message: player_queues/play_media: No playable items found
I am open to suggestions of what I have missed here (probably something simple), or even better an example of a button which plays a .m3u playlist.