Re: create favorites.opml via script and file list of the wav/flac files

pixelbit <pixelbit.ahznsn-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]> Mon, 28 Mar 2022 08:38:08 +0000
Newsgroups gmane.music.equipment.slimdevices.devel
Organization Logitech Squeezebox Forums
Message-ID <[email protected]>
hello mherger,
thanks for the quick answer to my question :)

i don't know exactly what you mean by "register".

my idea/procedure is:

to create the file favorites.opml from the paths of the song files
(wav,flac), per script.
the background is that my directory structure of the music folder
changes from time to time and therefore the entries in favorites.opml
are no longer correct.
therefore i create a new favorites.opml from the list of my songs (path
to the wav/flac files!).
I then import the file created in this way via lms (favorites --> pencil
button --> import).
then my songs also appear in the favorites list, but without covers!

these covers are included in all wav/flac files (use dbpoweramp for
ripping!)
additionally the cover (png) can be found in every folder of the
respective song!

if i add the files manually and individually via lms to the favourites
list, everything works fine :) 
but the list of my favourite songs is just too big to do this manually
every time :)

here is an excerpt of my script-created favorites.opm file:

----------------------------------------------------
<opml version="1.0">
<head title="Favorites">
<expansionState></expansionState>
</head>
<body>
...
<outline
URL="file:///srv/media/music/music-all/music-neu/M9/Stephan%20Micus/1983%20-%20Listen%20to%20the%20Rain/04%20-%20For%20Abai%20and%20Togshan.flac"
icon="music/1015417/cover.png"
text="file:///srv/media/music/music-all/music-neu/M9/Stephan%20Micus/1983%20-%20Listen%20to%20the%20Rain/04%20-%20For%20Abai%20and%20Togshan.flac"
type="audio" />
<outline
URL="file:///srv/media/music/music-all/music/M1/FLAC%2016bit%2044.1kHz%20(CD)/Cowboy%20Junkies%20-%20Discography%20(1986%20-%202007)/1986%20-%20Whites%20Off%20Earth%20Now!!/01%20-%20Shining%20Moon.flac"
icon="music/1061238/cover.png" text="Shining Moon" type="audio" />
...
</body>
</opml>
----------------------------------------------------


the entry icon="music/1061238/cover.png" takes care of the correct
display of the included covers. my question is: how do i get
'icon="music/1061238/cover.png' without having to add all the songs
manually? or, is there an easier way? the url-encode/decode doesn't
always work reliably for certain languages!

it would be great to find a solution, i'm always busy with this and
would like to have a working solution now :)

thanks for your answer!

greetings pixelbit


------------------------------------------------------------------------
pixelbit's Profile: http://forums.slimdevices.com/member.php?userid=63926
View this thread: http://forums.slimdevices.com/showthread.php?t=116169