radio-looptober

somehow downloads looptober mp3 files and make a radio out of them
git clone https://git.lurk.org/repos/radio-looptober.git
Log | Files | Refs | README | LICENSE | TODO

stream_loooooops.sh (480B)


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/sh

set -e

# Do we have config file?
if [ ! -e stream_loooooops-config.xml ]
then
  echo ":( write an ezstream config file plz"
fi

# We keep trying to read the playlist
# it could take some time for the download script to
# generate one the first time
while true
do
  if [ -e playlist_loooooops.m3u ]
  then
    echo ":) playlist found"
    ezstream -v -c stream_loooooops-config.xml
    break
  else
    echo ":( playlist not found, trying again"
    sleep 2s
  fi
done