From fea58d4996b35e753b1dc37f5941304ff59efcca Mon Sep 17 00:00:00 2001 From: xfnw Date: Mon, 6 Jul 2020 20:17:38 +0000 Subject: [PATCH] init --- .gitignore | 9 +++++++++ genplaylist | 12 ++++++++++++ tr-test.liq | 16 ++++++++++++++++ 3 files changed, 37 insertions(+) create mode 100644 .gitignore create mode 100755 genplaylist create mode 100755 tr-test.liq diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..cfe1600 --- /dev/null +++ b/.gitignore @@ -0,0 +1,9 @@ +passwords.liq +Music/ +Music/* +testing/* +testing +*.m3u +*.pls +*.mp3 + diff --git a/genplaylist b/genplaylist new file mode 100755 index 0000000..175c38a --- /dev/null +++ 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 new file mode 100755 index 0000000..76e789d --- /dev/null +++ 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 +) +