radio-scripts/fireup.sh
2021-01-31 13:31:54 +01:00

13 lines
362 B
Bash
Executable File

#!/bin/zsh
echo "let's go"
find $PWD /home/user/incoming | grep .mp3 | shuf > /media/mp3/playlist.m3u
source .venv/bin/activate
python palanggana.py --magic shoutout | \
python renderradiopage.py | \
python buildplaylist.py >> /media/mp3/playlist.m3u;
liquidsoap ../radio/radio.liq &&
echo "the radio is currently off" | python renderradiopage.py;
deactivate;