Hello!

My aim is to play concatenation of one "news" (no idea how to say this  
word correct in singular :-O) and one intro every 20 minutes.

I've rewritten my code the following way:

music = playlist(reload = 86400, "/home/radio/content/music.txt")
news = playlist(reload = 86400, "/home/radio/content/news.txt")
intro = playlist(reload = 86400, "/home/radio/content/intro.txt")
default = single("/home/radio/content/music/test1.mp3")

radio = fallback([ request.queue(id="request"), music, default ])

news = sequence(merge = true, [intro, news])
news = delay(1200., news)
radio = fallback([ news, radio ])

This code works fine only one time, the first time after starting  
liquidsoap.
Later liquidsoap plays either one "news" or one intro.

It will be great if you'll explain me where I am wrong or this is  
liquidsoap bug.

I use the latest release version liquidsoap-0.9.0 on FreeBSD.

%uname -a
FreeBSD upyachka.ru 7.1-PRERELEASE-200809 FreeBSD 7.1- 
PRERELEASE-200809 #0: Sun Sep  7 12:36:15 UTC 2008     
[email protected] 
:/usr/obj/usr/src/sys/GENERIC  amd64

BTW, here is the link to our radio station:
http://upyachka.ru:8000/stealkill.m3u

Thanks guys!

On 25.06.2009, at 19:53, Hal Mecke wrote:

> Hello/Salut,
>
> First of all, greetings to the list from a long-time lurker :-)
>
> I haven't tried running this exact example yet, but like David I have
> noticed some odd behavior with prepend().
>
> Are you using a pre-built package, or did you build from svn or one of
> the tarballs?
>
> Also, do any of the lines you've elided touch either the news or intro
> sources?  (i.e., are there compositions, etc. that get applied before
> prepend()?)
>
> Hal
>
> On Wed, Jun 24, 2009 at 5:29 AM, Alexey Tarasov<[email protected]> wrote:
>> Hello.
>>
>> Please, help me with prepend function in liquidsoap.
>> I have the following code:
>>
>> news = playlist(reload = 86400, "/home/radio/content/news.txt")
>> intro = playlist(reload = 86400, "/home/radio/content/intro.txt")
>>
>> ...
>>
>> news = prepend(news, fun(_) -> intro)
>> radio = fallback([ news, radio ])
>>
>> I want random intro to be prepended to every news. With this code I
>> get random news or intros, but not them together.
>>
>> --
>> Alexey Tarasov
>>
>> (\__/)
>> (='.'=)
>> E[: | | | | :]З
>> (")_(")
>>
>>
>> ------------------------------------------------------------------------------
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>

--
Alexey Tarasov

(\__/)
(='.'=)
E[: | | | | :]З
(")_(")


------------------------------------------------------------------------------
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to