mherger wrote: > > @Michael - as you can see in the above screenshot, the Material > supplied > > artist image is mixed with the others. Ideally this image would only > be > > used as the MAI fallback, and the existing image/icon used for lists > > such as the above. Can this be rectified? > > What would you need? What are you looking for to do the mapping?
First issue: Material ships 'MaterialSkin/HTML/material/html/images/artists.png' - which is a more Material-like image for artists. This is picked up by MAI and used as an artist image when it cannot find an image online. This is great. However its also used as the artist icon (e.g. when listing 'Artists' in 'My Music') in the default skin, and on my SB Radio - and this is not good, as its not the same style as the other icons. Perhaps this file should be named 'artists-fallback.png' MAI could then use this image, and UI icons would use 'artists.png' ?? However, MAI would need to handle the case where 'artists-fallback.png' does not exist, so then fallback to 'artists.png' Second issue: Material attempts to remap the 'icons' used in lists to more Material like monochrome icons. To do this I currently look at the 'icon', 'icon-id', and (for 1.5.3) the 'image' field of an item. I check whether this field 'endsWith' a certain string, and if so map it to the configured icon. e.g. '/radiosearch.png' gets mapped to 'search'. The mapping only works on the icon filenames, not what they are being used for. You can see in the Qobuz listing the 'list' icon is used twice - but (I think) one of the entries is for tracks, the other playlists. If each entry as given a more appropriate filename (e.g. '/tracks.png') then the mapping would be better. Now 'tracks.png' could still be the same image as the playlists, but by using a different name it allows for a better mapping. Likewise when spotty is using 'inbox.png' - a more approriate name for the image would be better. Could still be a the same image, so nothing changes in defaoult UI, etc. Or, even better, if a new field was added to the JSONRPC response which detailed what an item was, then that could be used instead. e.g. "lms-icon":"playlist", "lms-icon":"genres-moods" *Material debug:* 1. Launch via http: //SERVER:9000/material/?debug=json 2. Open browser's developer tools 3. Open console tab in developer tools 4. REQ/RESP messages sent to/from LMS will be logged here. ------------------------------------------------------------------------ cpd73's Profile: http://forums.slimdevices.com/member.php?userid=66686 View this thread: http://forums.slimdevices.com/showthread.php?t=109624 _______________________________________________ plugins mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/plugins
