hi,
`pop_happy = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/pop/happy/")
pop_calm = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/pop/calm/")
pop_sad = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/pop/sad/")
cl_happy = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/classical/happy/")
cl_calm = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/classical/calm/")
cl_sad = playlist(mode='randomize',reload=1,reload_mode="rounds",
"/classical/sad/")
#now get genre into rotation so it will play 1 mood for genre
pop = rotate(weights=[1,1,1],[pop_happy,pop_calm,pop_sad])
cl = rotate(weights=[1,1,1],[cl_happy,cl_calm,cl_sad])
#i you want, you can mix all
all = rotate(weights=[1,1],[pop,cl])
#or switch genre
s1 = at({00h00-12h00},pop)
s2 = at({12h00-23h59},cl)
`
for dynamic request by the Users you can use custom DEF with telnet protocol
or call the https://www.liquidsoap.info/doc-dev/request_sources.html
that can be work with external software that collects user requests
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/648#issuecomment-433443489
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users