Re: create favorites.opml via script and file list of the wav/flac files
MrC <MrC.ai7w6n-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Fri, 1 Apr 2022 19:20:38 +0000
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
I think the basic steps are, for local files: 1. query LMS to find the tracks you need to match 2. for each of those tracks found, query LMS to find the cover art ID (see Note) 3. for those tracks, get the art ID (see Note) 37602 Note: For local tracks, it appears that LMS uses the song ID to reference the artwork, and uses "cover.png" as the name. You can see that the artwork_track_id isn't referenced in the icon attribute for the OPML entry. I presume LMS is caching the resized artwork, and the icon's path references this resized icon in this cache (via the specified relative URL path). You'll have to either query LMS for each of your desired tracks, or query for all of them, build up a database, where you can match the file URL to your tracks on the volume, whereby you then obtain the track ID to file URL/volume mapping. There may be a shorter way to obtain the info, and create this mapping, but regardless, you need to get the ID based on what you have in your list, which is a collection of media disk paths. +-------------------------------------------------------------------+ |Filename: artwork.jpg | |Download: http://forums.slimdevices.com/attachment.php?attachmentid=37602| +-------------------------------------------------------------------+ ------------------------------------------------------------------------ MrC's Profile: http://forums.slimdevices.com/member.php?userid=468 View this thread: http://forums.slimdevices.com/showthread.php?t=116169