Looks good, but do you really need the once command there? I'm not there in my 
self learning as of yet? Also  why txt files? Not bashing or harping, just 
pointing things out that's all. If it seems like I'm harping, sorry about that 

Also if you upload yoru stuff to /etc/liquidsoap you can run 
/etc/init.d/liquidsoap then it should load all of your scripts there. You will 
have to have absolute pathes to the playlist files for example

/home/radio/playlists/funtimes.txt or what ever it is. At least that is what 
works for me.

Blessings.
> On Dec 19, 2014, at 10:03 AM, Jonathan <[email protected]> wrote:
> 
> Hello all. so, I've been kind  of looking at a way to reload my 
> playlists when it switches on my scheduler for liquidsoap. Here is the 
> code below.
> #!/etc/liquidsoap
> #log directory
> set("log.file.path","/tmp/radio.log")
> set("server.telnet",true)
> #music
> 
> #pre recorded shows
> #Tuesday
> blindside = playlist.once("/home/kjsc/playlist/blindside.txt")
> familyroom = playlist.once("/home/kjsc/playlist/familyroom.txt")
> goalline = playlist.once("/home/kjsc/playlist/goalline.txt")
> #Wednesday
> midweek = playlist.once("/home/kjsc/playlist/midweek.txt")
> #Thursday
> getreal = playlist.once("/home/kjsc/playlist/getreal.txt")
> positive = playlist.once("/home/kjsc/playlist/positive.txt")
> #Friday
> talk = playlist.once("/home/kjsc/playlist/talk.txt")
> fridaynightlive = playlist.once("/home/kjsc/playlist/fridaynightlive.txt")
> #Saturday
> loveconnection = playlist.once("/home/kjsc/playlist/loveconnection.txt")
> openhouse = playlist.once("/home/kjsc/playlist/openhouse.txt")
> #Sunday
> kidscorner = playlist.once("/home/kjsc/playlist/kidscorner.txt")
> rcl = playlist.once("/home/kjsc/playlist/rcl.txt")
> phonetalk = playlist.once("/home/kjsc/playlist/phonetalk.txt")
> myplaylist = mksafe(fallback([request.queue(id="q"),
> switch([
> ({2w and 18h-19h}, blindside),
> ({2w and 19h-20h}, familyroom),
> ({2w and 21h30-22h}, goalline),
> ({3w and 19h-20h}, midweek),
> ({4w and 18h-19h            }, getreal),
> ({4w and 19h-20h}, positive),
> ({5w and 17h-18h}, talk),
> ({5w and 20h-22h}, fridaynightlive),
> ({6w and 16h-17h}, loveconnection),
> ({6w and 19h-23h}, openhouse),
> ({7w and 12h28-13h}, kidscorner),
> ({7w and 13h-15h}, rcl),
> ({7w and 18h-19h}, phonetalk)]),
> 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", port = 8000,
> password = "stuff", mount = "autodj.mp3",
> radio)
> 
> Someone has told me that that playlist.once function should read the 
> playlist every time the switch function is used. But, for some reason, 
> it doesn't do that and I would kind of like a way to have my playlist 
> reloadable automatically. I'm using liquidsoap version 1.1.1 I believe.
> 
> ------------------------------------------------------------------------------
> 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=164703151&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=164703151&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to