feat: add liquidsoap script with minecraft mp3 stream
This commit is contained in:
parent
9963b723f9
commit
b23f957ecb
2 changed files with 30 additions and 0 deletions
3
config/liquidsoap.env.example
Normal file
3
config/liquidsoap.env.example
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
# must match SOURCE_PW in icecast.env
|
||||
SOURCE_PW=replace-me-source
|
||||
TZ=UTC
|
||||
27
config/liquidsoap.liq
Normal file
27
config/liquidsoap.liq
Normal file
|
|
@ -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
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue