Looking to play a genre via the API but cannot see a direct way in the guide.
I am hoping there is something built in like cmd=playgenre&name=Rock or something.
Any suggestions?
Looking to play a genre via the API but cannot see a direct way in the guide.
I am hoping there is something built in like cmd=playgenre&name=Rock or something.
Any suggestions?
You could try with the normal replaceAndPlay command, it can eat atleast tracks/albums and artist uris, so perhaps an genre aswell.
Edit: i just tested, with websocket you can start playback of genre just like would start playback of song, perhaps the same works for rest api aswell?
it should be posible to browse on genres ( rest api / volumio )
volumio.local/api/v1/browse?uri=uri
{
"albumart": "/albumart?sourceicon=music_service/mpd/genreicon.png",
"name": "Genres",
"uri": "genres://",
"plugin_type": "music_service",
"plugin_name": "mpd"
},