mirror of
https://git.lurk.org/repos/radio-looptober.git
synced 2024-12-22 04:30:31 +01:00
basic streaming script
This commit is contained in:
parent
7c18104365
commit
bb9fd148b4
22
stream_loooooops.sh
Executable file
22
stream_loooooops.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/sh
|
||||
|
||||
# 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 -c stream_loooooops-config.xml
|
||||
else
|
||||
echo ":( playlist not found, trying again"
|
||||
sleep 2s
|
||||
fi
|
||||
done
|
Loading…
Reference in New Issue
Block a user