radio

a few small liquidsoap and bash scripts to make nice tilderadio shows
Log | Files | Refs

commit fea58d4996b35e753b1dc37f5941304ff59efcca
Author: xfnw <xfnw@ttm.sh>
Date:   Mon,  6 Jul 2020 20:17:38 +0000

init

Diffstat:
A.gitignore | 9+++++++++
Agenplaylist | 12++++++++++++
Atr-test.liq | 16++++++++++++++++
3 files changed, 37 insertions(+), 0 deletions(-)

diff --git a/.gitignore b/.gitignore @@ -0,0 +1,9 @@ +passwords.liq +Music/ +Music/* +testing/* +testing +*.m3u +*.pls +*.mp3 + diff --git a/genplaylist b/genplaylist @@ -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 diff --git a/tr-test.liq b/tr-test.liq @@ -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 +) +