06-26-2023, 09:03 PM
(06-06-2023, 12:36 PM)Tim Curtis Wrote: Bulk added raw playlist (.pls) files in /var/lib/mpd/playlists/ will show up in Folder view ok but in Playlist view they will appear with a broken cover image because the files lack the two EXT metadata fields below and also a corresponding real or default cover image in /var/local/www/imagesw/playlist-covers/
Example
Code:pi@moode:~ $ cat /var/lib/mpd/playlists/FluxFM\ Stations.m3u
#EXTGENRE:Various
#EXTIMG:local
https://fluxmusic.api.radiosphere.io/channels/FluxFM/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/60s/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/70s/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/80s/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/90s/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/b-funk/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/berlin-beach-house/stream.aac?quality=4
http://streams.fluxfm.de/boomfm/mp3-320/audio/
https://fluxmusic.api.radiosphere.io/channels/boom-fm-classics/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/chillhop/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/clubsandwich/stream.aac?quality=4
http://streams.fluxfm.de/dubradio/mp3-320/streams.fluxfm.de/
https://fluxmusic.api.radiosphere.io/channels/elektro-flux/stream.aac?quality=4
http://streams.fluxfm.de/forward/mp3-320/audio/
https://fluxmusic.api.radiosphere.io/channels/flux-kompensator/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/flux-lounge/stream.aac?quality=4
http://streams.fluxfm.de/hardrock/mp3-320/streams.fluxfm.de/
https://fluxmusic.api.radiosphere.io/channels/htgp/stream.mp3?quality=4
http://streams.fluxfm.de/studio56/mp3-320/audio/
https://fluxmusic.api.radiosphere.io/channels/jazz-schwarzenstein/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/john-reed-radio/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/klub-radio/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/metal-fm/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/mini-flux/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/neofm/stream.aac?quality=4
http://streams.fluxfm.de/passport/mp3-320/audio/
http://streams.fluxfm.de/rastaradio/mp3-320/streams.fluxfm.de/
https://fluxmusic.api.radiosphere.io/channels/sound-of-berlin/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/techno-underground/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/x-jazz/stream.aac?quality=4
https://fluxmusic.api.radiosphere.io/channels/yoga-sounds/stream.aac?quality=4
Code:pi@moode:~ $ ls -l /var/local/www/imagesw/playlist-covers/
total 100
-rwxr-xr-x 1 root root 54169 Jun 5 19:24 'Default Playlist.jpg'
-rwxr-xr-x 1 root root 36743 Jun 5 19:24 Favorites.jpg
-rw-r--r-- 1 root root 4850 Jun 5 19:24 'FluxFM Stations.jpg'
To set a default cover image instead of an actual cover image do the following:
Code:1. Use #EXTIMG:default
2. Copy the file /var/www/images/pldefault.jpg to /var/local/www/imagesw/playlist-covers/PLAYLIST_PLS_FILE_NAME.jpg
Bulk copied raw radio station .m3u files in /var/lib/mpd/music/RADIO won't appear in the WebUI because they are missing corresponding entries in the cfg_radio SQL table.
Developing a bulk import feature for raw playlists and radio station files is not a trivial undertaking but maybe a dev will take up the challenge :-)
Thank you for your answer - I forgot I asked the question... oooops.