mirror of https://xfnw.ttm.sh/git/radio.git
h o t r e l o a d
This commit is contained in:
parent
3f7060b4d6
commit
8cc02b712c
16
tr-play.liq
16
tr-play.liq
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
@ -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
|
||||
)
|
||||
|
16
tr-test.liq
16
tr-test.liq
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue