Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Playlist amounts?
#1
Ok, so I had a wild hair to go playing around in the MPD playlists directories to add to the shipped radio stations. Before I do, I was wondering: is there a maximum amount of playlist files I can use? My musical tastes are so eclectic that I could play practically anything, so that means I could have a ton (to whatever power) of stations that I might or might not listen to, but would want to have saved.

Does a certain amount of *.pls/*.m3u files past a certain point also slow down operation of MoOde for any reason?

Thanks for your help.
Reply
#2
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 :-)
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply
#3
Bulk radiostation import is possible from the cli with the station manager tool.
And with a little bit of creativity also with a manual manipulated backup restore.
Reply
#4
(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.
Reply
#5
(06-06-2023, 06:51 PM)bitlab Wrote: Bulk radiostation import is possible from the cli with the station manager tool.
And with a little bit of creativity also with a manual manipulated backup restore.

Creativity is a good thing. It breaks stuff. Wink
Reply


Forum Jump: