argv for more playlists

This commit is contained in:
vulpine 2020-07-06 20:25:34 +00:00
parent fea58d4996
commit 57dd10ba64
3 changed files with 33 additions and 1 deletions

16
tr-play.liq Executable file
View File

@ -0,0 +1,16 @@
#!/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=false)])))
output.icecast(%vorbis,
host="radio.tildeverse.org",user="lickthecheese",port=8005,password=password,
mount="/",
on_blank(shutdown,radio),
on_stop=shutdown,
fallible=true
)

16
tr-random.liq Executable file
View File

@ -0,0 +1,16 @@
#!/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="lickthecheese",port=8005,password=password,
mount="/",
on_blank(shutdown,radio),
on_stop=shutdown,
fallible=true
)

View File

@ -4,7 +4,7 @@ set("log.file.path","/tmp/xfnw-basic-radio.log")
%include "passwords.liq"
radio = crossfade(normalize(random([playlist.once("playlist.m3u",random=true)])))
radio = crossfade(normalize(random([playlist.once(argv(1),random=true)])))
output.icecast(%vorbis,
host="radio.tildeverse.org",user="lickthecheese",port=8015,password=password,