diff --git a/radio-config/ezstream.service b/radio-config/ezstream.service new file mode 100644 index 0000000..98019a4 --- /dev/null +++ b/radio-config/ezstream.service @@ -0,0 +1,16 @@ +[Unit] +Description=Launch Ezstream and update its config file +After=icecast.service + +[Service] +Type=simple +User=strange +ExecStart=/home/strange/External/Cast/start-ezstream.sh +TimeoutSec=60 +StandardOutput=syslog +StandardOutput=syslog +SyslogIdentifier=ezstream +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/radio-config/ezstream/dancin.xml b/radio-config/ezstream/dancin.xml new file mode 100644 index 0000000..d05805e --- /dev/null +++ b/radio-config/ezstream/dancin.xml @@ -0,0 +1,29 @@ + + + + + :) + :) + + + + + + + /dancin.mp3 + No + MP3 + + + + + + + playlist + /home/strange/External/Cast/Dancin'.m3u + True + + + + + diff --git a/radio-config/ezstream/doomin.xml b/radio-config/ezstream/doomin.xml new file mode 100644 index 0000000..2f00a50 --- /dev/null +++ b/radio-config/ezstream/doomin.xml @@ -0,0 +1,29 @@ + + + + + :0 + :0 + + + + + + + /doomin.mp3 + No + MP3 + + + + + + + playlist + /home/strange/External/Cast/Doomin'.m3u + True + + + + + diff --git a/radio-config/ezstream/funkin.xml b/radio-config/ezstream/funkin.xml new file mode 100644 index 0000000..639afc9 --- /dev/null +++ b/radio-config/ezstream/funkin.xml @@ -0,0 +1,29 @@ + + + + + :/ + :/ + + + + + + + /funkin.mp3 + No + MP3 + + + + + + + playlist + /home/strange/External/Cast/Funkin'.m3u + True + + + + + diff --git a/radio-config/ezstream/gazin.xml b/radio-config/ezstream/gazin.xml new file mode 100644 index 0000000..d3dd659 --- /dev/null +++ b/radio-config/ezstream/gazin.xml @@ -0,0 +1,29 @@ + + + + + tonpare + tamare + + + + + + + /gazin.mp3 + No + MP3 + + + + + + + playlist + /home/strange/External/Cast/Gazin'.m3u + True + + + + + diff --git a/radio-config/start-ezstream.sh b/radio-config/start-ezstream.sh new file mode 100755 index 0000000..2fd5c63 --- /dev/null +++ b/radio-config/start-ezstream.sh @@ -0,0 +1,13 @@ +#!/usr/bin/env sh + +base="/home/strange/External/Cast" + +for cadena in $base/Cadenes/*; do + find -L "$cadena" -name *.mp3 > $base/"$(basename $cadena)".m3u +done + +ezstream -v -c ~/.config/ezstream/dancin.xml & +ezstream -v -c ~/.config/ezstream/funkin.xml & +ezstream -v -c ~/.config/ezstream/doomin.xml & +ezstream -v -c ~/.config/ezstream/gazin.xml +