mpd: add radios playlist
authorHugo Villeneuve <hugo@hugovil.com>
Wed, 4 Jan 2023 03:01:20 +0000 (22:01 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Wed, 1 Mar 2023 17:10:15 +0000 (12:10 -0500)
recipes-multimedia/musicpd/mpd/radios.m3u [new file with mode: 0644]
recipes-multimedia/musicpd/mpd_%.bbappend

diff --git a/recipes-multimedia/musicpd/mpd/radios.m3u b/recipes-multimedia/musicpd/mpd/radios.m3u
new file mode 100644 (file)
index 0000000..28e5fe7
--- /dev/null
@@ -0,0 +1,47 @@
+#EXTM3U
+#EXTINF:-1,ICI Radio-Canada Première - Saguenay
+http://cbcmp3.ic.llnwd.net/stream/cbcmp3_P-2QSAG0_SAG
+
+#EXTM3U
+#EXTINF:-1,ICI Radio-Canada Première - Montréal
+http://cbcmp3.ic.llnwd.net/stream/cbcmp3_P-2QMTL0_MTL
+
+#EXTM3U
+#EXTINF:-1,ICI Musique Radio-Canada - Saguenay
+http://cbcmp3.ic.llnwd.net/stream/cbcmp3_M-7QSAG0_SAG
+
+#EXTM3U
+#EXTINF:-1,Ici Musique Radio-Canada - Toronto (classique)
+http://cbcmp3.ic.llnwd.net/stream/cbcmp3_cbc_r2_tor
+
+#EXTM3U
+#EXTINF:-1,KING FM 98.1 (classique)
+http://classicalking.streamguys1.com/king-fm-aac-128k
+
+#EXTM3U
+#EXTINF:-1,WCPE (classique)
+http://audio-mp3.ibiblio.org:8000/wcpe.mp3
+
+#EXTM3U
+#EXTINF:-1,Pure Jazz Radio
+http://71.125.12.37:8000
+
+#EXTM3U
+#EXTINF:-1,Jazz Central
+http://149.255.59.3:8027/stream
+
+#EXTM3U
+#EXTINF:-1,Planeta Jazz
+https://streamfgh.com:8820/stream
+
+#EXTM3U
+#EXTINF:-1,The Great American Songbook
+http://listen.shoutcast.com/thegreatamericansongbook
+
+#EXTM3U
+#EXTINF:-1,CKRL 89.1
+http://stream02.ustream.ca:8000/ckrl128.mp3
+
+#EXTM3U
+#EXTINF:-1,FIP 105.1 (Paris)
+http://direct.fipradio.fr/live/fip-midfi.mp3?ID=76zqey582k
index 105bb83..8f86ff0 100644 (file)
@@ -1,3 +1,9 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+SRC_URI:append = " \
+     file://radios.m3u \
+"
+
 do_install:append() {
     echo "zeroconf_enabled    \"yes\"" >> ${D}/${sysconfdir}/mpd.conf
     echo "zeroconf_name       \"Serveur Musique MPD\"" >> ${D}/${sysconfdir}/mpd.conf
@@ -5,4 +11,6 @@ do_install:append() {
     echo "    type    \"alsa\"" >> ${D}/${sysconfdir}/mpd.conf
     echo "    name    \"My ALSA Device\"" >> ${D}/${sysconfdir}/mpd.conf
     echo "}" >> ${D}/${sysconfdir}/mpd.conf
+
+    install -m 644 -o mpd -g audio ${WORKDIR}/radios.m3u ${D}/${localstatedir}/lib/mpd/playlists/
 }