This commit is contained in:
vulpine 2020-07-06 20:17:38 +00:00
commit fea58d4996
3 changed files with 37 additions and 0 deletions

9
.gitignore vendored Normal file
View File

@ -0,0 +1,9 @@
passwords.liq
Music/
Music/*
testing/*
testing
*.m3u
*.pls
*.mp3

12
genplaylist Executable file
View File

@ -0,0 +1,12 @@
#!/bin/bash
echo "#EXTM3U"
while [[ 1 ]]; do
read -p 'continue (^c to cancel)?'
SELSONG=$(fzf -q Music)
printf "#EXTINF:,"
echo "$SELSONG" | sed 's+Music/++'|sed ' s/_/ /'|sed 's/....$//'
echo "$SELSONG"
done

16
tr-test.liq Executable file
View File

@ -0,0 +1,16 @@
#!/usr/bin/liquidsoap
# Log dir
set("log.file.path","/tmp/xfnw-basic-radio.log")
%include "passwords.liq"
radio = crossfade(normalize(random([playlist.once("playlist.m3u",random=true)])))
output.icecast(%vorbis,
host="radio.tildeverse.org",user="lickthecheese",port=8015,password=password,
mount="/",
on_blank(shutdown,radio),
on_stop=shutdown,
fallible=true
)