Add a cover for playlist
NicolasCARPi opened this issue · 6 comments
Hello,
What if I put in my 'playlists' folder a .jpg with the same name as a playlist.
Could it be displayed as cover for this playlist (useful for a web radio for instance) ?
Regards,
~Nico
Hello Nicolas,
AFAIK mpd doesn't keep information about what playlists were added. It means that when you add a playlist to currently playing tracks, it just adds the contents. Thus, displaying a cover for a playlist would be only possible if playlist was added from awesompd. Right now I tried to keep awesompd as much independent from what MPD is doing, so I don't like this idea.
What could be possible is somehow setting a cover for exact web radio stream. This might be implemented via setting a directory with stream covers. I will give this a thought.
Ok, thanks :)
I added support for radio covers in f528a02. To use it you have to add the following to your rc.lua
where you configure awesompd:
mpdwidget.radio_covers = { ["http://www.station1.url/"] = "path/to/local/image",
["http://www.station2.url/"] = "path/to/local/image" }
Station URLs don't have to be exact, they are matched via string.match
, so any regex will do.
I'll be very thankful if you test it and comment on the result.
Wow, this is great !
It works fine :)
Thank you very much.
I will not have to watch that dreaded default CD image at each track change \o/
Regards,
~Nicolas
I hate that image as well:). By the way you can get rid of it completely by removing icons/default_album_cover.png
file.
Cheers :)