Yup, just add switches in your code. You can find good examples on how to do it
on the Liquidsoap documentation.
Like this :
radio = fallback([ switch([
({ 1w and 17h-18h }, mymondayshow),
({ 2w and 17h-18h }, mytuesdayshow),
({ 6w and 17h-18h }, mysaturdayshow),
]), myplaylist])
And so on
On Fri, Nov 21, 2014 at 6:36 PM, Jonathan <[email protected]>
wrote:
> I'm sorry I keep asking so many questions here, but, what if I have
> multiple shows once per day for example? could I just use that same code
> but specify it on each day and time? or would I had to modify it that
> way? for example let's say that example you gave for 6:00 on Monday, and
> let's say that I'm going to put another show up for prerecord on
> Thursday. would the same code still apply? I'm kind of looking for
> something kind of quick kind of like emergency situations that way I
> really wouldn't have to modify the script all that much. and I wouldn't
> have to worry about killing the process and starting it over again. If I
> could use the same code per switch, that would be good sense I could
> just do it and be done with it. Then all I would have to worry about is
> uploading, and making the playlist, which is not hard at all to do.
> On 11/21/2014 10:16 AM, Yoann Ferret wrote:
>> I don't think the directory method works, because playlist.once will
>> try to read all the files in a specific order (as opposed to playlist,
>> which will randomly play all files, ad lib).
>>
>> If there's nothing inside myshow.txt or if the playlist doesn't exist
>> at all, Liquidsoap will read the next source provided, ie. myplaylist.
>>
>>
>>
>>
>> On Fri, Nov 21, 2014 at 6:10 PM, Jonathan Candler
>> <[email protected] <mailto:[email protected]>> wrote:
>>
>> And another question. So, if I don't have anything in that
>> playlist for a particular week, is there a way I could just use a
>> directory and then if there's nothing in the directory, will it
>> just default back to the regular playlist?
>>
>> Jonnyboy! Iphones rock!
>>
>> On Nov 21, 2014, at 09:40, Yoann Ferret <[email protected]
>> <mailto:[email protected]>> wrote:
>>
>>> Again, probably not the best way to do it, but nothing prevents
>>> you to put a single file on that playlist.
>>> That way you're still able to put more than one file (jingles,
>>> speaks, music...) for your show whenever you want.
>>>
>>>
>>>
>>>
>>> On Fri, Nov 21, 2014 at 5:36 PM, Jonathan Candler
>>> <[email protected] <mailto:[email protected]>> wrote:
>>>
>>> I might use that code. But do you know is there a way that i
>>> can schedle a file to be queued
>>>
>>> Jonnyboy! Iphones rock!
>>>
>>> On Nov 21, 2014, at 07:53, Yoann Ferret <[email protected]
>>> <mailto:[email protected]>> wrote:
>>>
>>>> I'm not sure if this is the BEST way, but you can achieve
>>>> this with playlist.once and switches.
>>>>
>>>> Let's assume you want your show to be played every monday at
>>>> 6pm, and then go back to myplaylist when it's over. Just put
>>>> your show on a playlist file « myshow.txt » containing all
>>>> the files in the right order.
>>>>
>>>> myshow = playlist.once(/path/to/myshow.txt)
>>>>
>>>> radio = fallback([ switch([
>>>> ({ 1w and 17h-18h }, myshow),
>>>> ]), myplaylist])
>>>>
>>>> Feel free to adjust to your needs and look up « switch » on
>>>> the Liquidsoap website for more documentation on the function.
>>>>
>>>>
>>>>
>>>>
>>>> On Fri, Nov 21, 2014 at 3:40 PM, Jonathan
>>>> <[email protected]
>>>> <mailto:[email protected]>> wrote:
>>>>
>>>> Hello all. I'm well, hate to do this, but I am bringing
>>>> this topic up
>>>> again, sense no one has really gotten back to me yet.
>>>> I was wondering if there is a way to schedule a
>>>> particular file to be
>>>> played at a given day and at a given time? for example I
>>>> would like to
>>>> have a prerecorded show that we have done last week to
>>>> be played on
>>>> Saturday at 1300 hours. The current way that I'm doing
>>>> it right now is
>>>> just pushing that particular file into the queue with
>>>> telnet, but
>>>> well... that kind of requires me to having to log on to
>>>> my servers to do
>>>> such a thing. pushing something like that to the queue
>>>> would work fine
>>>> if I could figure out how to automate that process. Is
>>>> there a way, or a
>>>> better way that this can be done? If you want to check
>>>> out the previous
>>>> archiving of the email that I'm talking about, go to
>>>> http://comments.gmane.org/gmane.comp.audio.liquidsoap.user/7375
>>>>
>>>> and if you want to check out my code of liquidsoap, here
>>>> it is below.
>>>> Note: passwords is not given out during this time.
>>>>
>>>> #!/etc/liquidsoap
>>>> #log directory
>>>> set("log.file.path","/tmp/radio.log")
>>>> set("server.telnet",true)
>>>>
>>>> #music
>>>> myplaylist =
>>>>
>>>> mksafe(fallback([request.queue(id="q"),playlist("/home/kjsc/music")]))
>>>>
>>>> # jingles
>>>> jingles = mksafe(playlist("/home/kjsc/jingles"))
>>>> radio = myplaylist
>>>> radio = rotate(weights = [1, 3],[jingles, radio])
>>>> radio = crossfade(start_next=2.1,fade_in=0.09,
>>>> fade_out=2.2,radio)
>>>> output.icecast(%mp3,
>>>> host = "kjscradio.com <http://kjscradio.com>", port = 8000,
>>>> password = "hackmemore", mount = "autodj.mp3",
>>>> radio)
>>>>
>>>> If someone can help out with this matter, I would be
>>>> grateful.
>>>> Take care all.
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>>
>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade
>>>> BIRT Server
>>>> from Actuate! Instantly Supercharge Your Business
>>>> Reports and Dashboards
>>>> with Interactivity, Sharing, Native Excel Exports, App
>>>> Integration & more
>>>> Get technology previously reserved for billion-dollar
>>>> corporations, FREE
>>>>
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>>>>
>>>> _______________________________________________
>>>> Savonet-users mailing list
>>>> [email protected]
>>>> <mailto:[email protected]>
>>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT
>>>> Server
>>>> from Actuate! Instantly Supercharge Your Business Reports
>>>> and Dashboards
>>>> with Interactivity, Sharing, Native Excel Exports, App
>>>> Integration & more
>>>> Get technology previously reserved for billion-dollar
>>>> corporations, FREE
>>>>
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>>>>
>>>> _______________________________________________
>>>> Savonet-users mailing list
>>>> [email protected]
>>>> <mailto:[email protected]>
>>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>>> from Actuate! Instantly Supercharge Your Business Reports and
>>> Dashboards
>>> with Interactivity, Sharing, Native Excel Exports, App
>>> Integration & more
>>> Get technology previously reserved for billion-dollar
>>> corporations, FREE
>>>
>>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>>>
>>> _______________________________________________
>>> Savonet-users mailing list
>>> [email protected]
>>> <mailto:[email protected]>
>>> https://lists.sourceforge.net/lists/listinfo/savonet-users
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards
>> with Interactivity, Sharing, Native Excel Exports, App Integration & more
>> Get technology previously reserved for billion-dollar corporations, FREE
>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
>>
>>
>> _______________________________________________
>> Savonet-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/savonet-users------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users