diff options
author | Sébastien Dailly <sebastien@dailly.me> | 2023-02-03 08:42:39 +0100 |
---|---|---|
committer | Sébastien Dailly <sebastien@dailly.me> | 2023-02-03 08:42:39 +0100 |
commit | b8c1d2d89c78256483863a15613022beadf4d489 (patch) | |
tree | a64c442d6fa6c4c5150329952fa5b7aa9e88617a | |
parent | cb31dfa28b44b9c149417383475e44ce67b670b9 (diff) |
Moved the playlists from /tmp/ to dedictated directory
-rw-r--r-- | board/mpd.sh | 43 | ||||
-rw-r--r-- | local/playlists/Favoris.m3u | 0 | ||||
-rw-r--r-- | local/playlists/fip.m3u | 22 | ||||
-rw-r--r-- | local/playlists/nova.m3u | 6 | ||||
-rw-r--r-- | local/playlists/radioFrance.m3u | 5 |
5 files changed, 38 insertions, 38 deletions
diff --git a/board/mpd.sh b/board/mpd.sh index 7313231..b5c41bd 100644 --- a/board/mpd.sh +++ b/board/mpd.sh @@ -5,6 +5,8 @@ tmpfs /var/lib/mpd tmpfs rw 0 0 __EOF__ fi +add_tmpfs "/home/playlists" + cat << __EOF__ > "${TARGET_DIR}/etc/mpd.conf" # Use a proxy to another instance music_directory "nfs://192.168.0.4/home/mpd/music" @@ -16,8 +18,7 @@ database { # Directory where user-made playlists are stored (RW) -#playlist_directory "nfs://192.168.0.4/home/mpd/playlists" -playlist_directory "/tmp/playlists" +playlist_directory "/home/playlists" # Log file (RW) # disable the logs @@ -46,50 +47,16 @@ audio_output { } __EOF__ -cat << __EOF__ > "${TARGET_DIR}/home/fip.m3u" -#EXTM3U -#EXTINF:0,Radio France - FIP -https://icecast.radiofrance.fr/fip-hifi.aac?id=radiofrance -#EXTINF:0,Radio France - FIP Electro -https://icecast.radiofrance.fr/fipelectro-hifi.aac?id=radiofrance -#EXTINF:0,Radio France - FIP Groove -https://icecast.radiofrance.fr/fipgroove-hifi.aac?id=radiofrance -#EXTINF:0,Radio France - FIP HipHop -https://icecast.radiofrance.fr/fiphiphop-hifi.aac?id=radiofrance -#EXTINF:0,Radio France - FIP Jazz -https://icecast.radiofrance.fr/fipjazz-hifi.aac?id=radiofrance -#EXTINF:0,Radio France - FIP Metal -https://icecast.radiofrance.fr/fipmetal-hifi.aac -#EXTINF:0,Radio France - FIP Nouveautés -https://icecast.radiofrance.fr/fipnouveautes-hifi.aac?id=radiofrance -#EXTINF:0,Radio France - FIP Reggae -https://icecast.radiofrance.fr/fipreggae-hifi.aac?id=radiofrance -#EXTINF:0,Radio France - FIP Rock -https://icecast.radiofrance.fr/fiprock-hifi.aac?id=radiofrance -#EXTINF:0,Radio France - FIP World -https://icecast.radiofrance.fr/fipworld-hifi.aac?id=radiofrance -__EOF__ - -cat << __EOF__ > "${TARGET_DIR}/home/nova.m3u" -#EXTM3U -#EXTINF:0,Radio Nova -https://novazz.ice.infomaniak.ch/novazz-128.mp3 -#EXTINF:0,Nova Nouvo -https://nova-nouvo.ice.infomaniak.ch/nova-nouvo-128.mp3 -__EOF__ +find "$BR2_EXTERNAL_PIAUDIO_PATH/local/playlists" -name '*.m3u' -type f -print0 | xargs -0 -I '{}' cp {} "${TARGET_DIR}/home/" cat << __EOF__ > "${TARGET_DIR}/etc/systemd/system/playlists.service" [Unit] Description=Playlists -#After=network-online.target -#Wants=network-online.target Before=mpd.target [Service] Type=unit -#ExecStartPre=sleep 3 -ExecStartPre=mkdir /tmp/playlists -ExecStart=find /home/ -name '*.m3u' -exec cp {} /tmp/playlists \; +ExecStart=find /home/ -name '*.m3u' -exec cp {} /home/playlists \; [Install] WantedBy=multi-user.target diff --git a/local/playlists/Favoris.m3u b/local/playlists/Favoris.m3u new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/local/playlists/Favoris.m3u diff --git a/local/playlists/fip.m3u b/local/playlists/fip.m3u new file mode 100644 index 0000000..4f0ad0d --- /dev/null +++ b/local/playlists/fip.m3u @@ -0,0 +1,22 @@ +#EXTM3U +#EXTINF:0,Radio France - FIP +https://icecast.radiofrance.fr/fip-hifi.aac +#EXTINF:0,Radio France - FIP Electro +https://icecast.radiofrance.fr/fipelectro-hifi.aac +#EXTINF:0,Radio France - FIP Groove +https://icecast.radiofrance.fr/fipgroove-hifi.aac +#EXTINF:0,Radio France - FIP HipHop +https://icecast.radiofrance.fr/fiphiphop-hifi.aac +#EXTINF:0,Radio France - FIP Jazz +https://icecast.radiofrance.fr/fipjazz-hifi.aac +#EXTINF:0,Radio France - FIP Metal +https://icecast.radiofrance.fr/fipmetal-hifi.aac +#EXTINF:0,Radio France - FIP Nouveautés +https://icecast.radiofrance.fr/fipnouveautes-hifi.aac +#EXTINF:0,Radio France - FIP Reggae +https://icecast.radiofrance.fr/fipreggae-hifi.aac +#EXTINF:0,Radio France - FIP Rock +https://icecast.radiofrance.fr/fiprock-hifi.aac +#EXTINF:0,Radio France - FIP World +https://icecast.radiofrance.fr/fipworld-hifi.aac + diff --git a/local/playlists/nova.m3u b/local/playlists/nova.m3u new file mode 100644 index 0000000..d056270 --- /dev/null +++ b/local/playlists/nova.m3u @@ -0,0 +1,6 @@ +#EXTM3U +#EXTINF:0,Radio Nova +https://novazz.ice.infomaniak.ch/novazz-128.mp3 +#EXTINF:0,Nova Nouvo +https://nova-nouvo.ice.infomaniak.ch/nova-nouvo-128.mp3 + diff --git a/local/playlists/radioFrance.m3u b/local/playlists/radioFrance.m3u new file mode 100644 index 0000000..a10b2f0 --- /dev/null +++ b/local/playlists/radioFrance.m3u @@ -0,0 +1,5 @@ +#EXTM3U +#EXTINF:0,France Info +http://icecast.radiofrance.fr/franceinfo-hifi.aac +#EXTINF:0,France Inter +http://icecast.radiofrance.fr/franceinter-hifi.aac |