Hi

I'm new to liquidsoap scripting and struggling with a simple task.

I have a random electronic playlist with some jingles every now and then.

I'm trying to play one theme track (intro.mp3) at the beginning of the
electronic show. how can I add just one mp3 at the beginning of the show?

electronic = playlist("/home/something/radio/library/electronic")

jingles =    playlist("/home/so/radio/library/jingles")

s = fallback([ request.queue(id="request"),

                    switch([    ({ 07h-08h }, rock),

                                ({ 08h-09h }, fullmix),

                                ({ 09h-10h }, folk),

                                ({ 10h-11h }, hiphop),

                                ({ 11h-15h }, fullmix),

                                ({ 15h-16h }, world),

                                ({ 16h-17h }, jazz),

                                ({ 17h-17h15 }, children),

                                ({ 17h15-17h30 }, fairytales),

                                ({ 17h30-18h00 }, children),

                                ({ 18h-19h }, classical),

                                ({ 19h-21h }, ambient),

                                ({ 21h-23h }, dub),

                                ({ 23h-07h }, electronic)]),

                                default])

s = rotate(weights=[1,6],[ jingles, s ])

Any help would be appreciated.

Best

Markus
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the 
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to