12 lines
501 B
Plaintext
12 lines
501 B
Plaintext
|
#!/usr/bin/liquidsoap
|
||
|
|
||
|
input = mksafe(input.http("https://radiodemo.oma-radio.fr/direct.ogg"))
|
||
|
#blank = single("/secours.ogg")
|
||
|
#input = fallback(track_sensitive=false, [input, blank])
|
||
|
#output.icecast(
|
||
|
# %mp3(bitrate=128, samplerate=22050, stereo=false),
|
||
|
# mount="/direct.mp3",
|
||
|
# host="icecast", port=8000, password="JsCabjWJUZXrrrKCaaRZma5wD4YKj5LQLXv6f",
|
||
|
# input)
|
||
|
output.file(%vorbis(samplerate=44100, channels=1, quality=0.5), '/archive/%Y-%m-%d/%Y-%m-%d-%H_%M_%S.mp3', input, reopen_when={0s})
|