h o t r e l o a d

This commit is contained in:
vulpine 2020-07-14 16:04:23 +00:00
parent 3f7060b4d6
commit 8cc02b712c
4 changed files with 28 additions and 36 deletions

View File

@ -1,10 +1,22 @@
#!/usr/bin/liquidsoap
# Log dir
set("log.file.path","/tmp/xfnw-basic-radio.log")
set("log.file",false)
set("log.stdout",true)
set("log.level",3)
set("server.telnet",true)
def apply_metadata(m) =
title = m["title"]
artist = m["artist"]
print("Now playing: #{title} by #{artist}")
end
%include "passwords.liq"
radio = crossfade(normalize(random([playlist.once(argv(1),random=false)])))
radio = crossfade(normalize(random([playlist.once(argv(1),random=false,reload_mode="watch")])))
radio = on_metadata(apply_metadata,radio)
output.icecast(%vorbis,
host="radio.tildeverse.org",user=user,port=8005,password=password,

View File

@ -1,16 +0,0 @@
#!/usr/bin/liquidsoap
# Log dir
set("log.file.path","/tmp/xfnw-basic-radio.log")
%include "passwords.liq"
radio = crossfade(normalize(random([playlist.once(argv(1),random=true)])))
output.icecast(%vorbis,
host="radio.tildeverse.org",user=user,port=8005,password=password,
mount="/",
on_blank(shutdown,radio),
on_stop=shutdown,
fallible=true
)

View File

@ -1,16 +0,0 @@
#!/usr/bin/liquidsoap
# Log dir
set("log.file.path","/tmp/xfnw-basic-radio.log")
%include "passwords.liq"
radio = crossfade(normalize(random([playlist.once(argv(1),random=true)])))
output.icecast(%vorbis,
host="radio.tildeverse.org",user=user,port=8015,password=password,
mount="/",
on_blank(shutdown,radio),
on_stop=shutdown,
fallible=true
)

View File

@ -1,10 +1,22 @@
#!/usr/bin/liquidsoap
# Log dir
set("log.file.path","/tmp/xfnw-basic-radio.log")
set("log.file",false)
set("log.stdout",true)
set("log.level",3)
set("server.telnet",true)
def apply_metadata(m) =
title = m["title"]
artist = m["artist"]
print("Now playing: #{title} by #{artist}")
end
%include "passwords.liq"
radio = crossfade(normalize(random([playlist.once(argv(1),random=false)])))
radio = crossfade(normalize(random([playlist.once(argv(1),random=false,reload_mode="watch")])))
radio = on_metadata(apply_metadata,radio)
output.icecast(%vorbis,
host="radio.tildeverse.org",user=user,port=8015,password=password,