diff --git a/config/liquidsoap.env.example b/config/liquidsoap.env.example new file mode 100644 index 0000000..60e17a7 --- /dev/null +++ b/config/liquidsoap.env.example @@ -0,0 +1,3 @@ +# must match SOURCE_PW in icecast.env +SOURCE_PW=replace-me-source +TZ=UTC diff --git a/config/liquidsoap.liq b/config/liquidsoap.liq new file mode 100644 index 0000000..de487b8 --- /dev/null +++ b/config/liquidsoap.liq @@ -0,0 +1,27 @@ +# denpa-radio liquidsoap script +# adding a station: copy a station block, rename, restart liquidsoap. + +settings.log.stdout.set(true) +settings.log.level.set(3) + +source_pw = environment.get(default="", "SOURCE_PW") + +# === station: minecraft === +minecraft = playlist( + reload_mode="watch", + mode="randomize", + "/library/minecraft/tracks" +) +minecraft = crossfade(minecraft) +minecraft = mksafe(minecraft) + +output.icecast( + %mp3(bitrate=192, stereo=true), + host="icecast", port=8000, password=source_pw, + mount="/minecraft.mp3", + name="Denpa — Minecraft", + description="Minecraft soundtracks", + genre="game-ost", + url="https://denpa.femboy.page", + minecraft +)