Re: [Savonet-users] playlist reloading

2014-11-30 Thread Jonathan
So, I'm guessing what happens, is when you first load the script, it loads the first reading of that playlist, so in a sense, it's already loaded, then when the switch happens it will read from the first loading, then, after it finishes, it will begin to read when the switch function is invoked

Re: [Savonet-users] playlist reloading

2014-11-29 Thread Yoann F
Every change will be taken into account, everytime the switch is invoked. I use this on a daily basis on my radio, don't know what went wrong with you :( 2014-11-29 21:06 GMT+01:00 Jonathan : > Or, will it be taken into account only when it read the playlist for the > first time and then continu

Re: [Savonet-users] playlist reloading

2014-11-29 Thread Jonathan
Or, will it be taken into account only when it read the playlist for the first time and then continues. Sorry, just trying to kind of get a handle on it. On 11/29/2014 12:57 PM, Jonathan Candler wrote: So you're saying, it is supposed to read the playlist when the switch is invoked? Because whe

Re: [Savonet-users] playlist reloading

2014-11-29 Thread Jonathan Candler
So you're saying, it is supposed to read the playlist when the switch is invoked? Because when I changed one of my playlist before the schedule started happening for that particular playlist, it did not read properly. Jonnyboy! Iphones rock! > On Nov 29, 2014, at 10:52, Yoann Ferret wrote: >

Re: [Savonet-users] playlist reloading

2014-11-29 Thread Yoann Ferret
Again, hate to say it but what you're trying to do is useless. You DON'T have to set any kind of reload mode for playlist.once because it will read the playlist "as is" everytime it's called in your schedule. If you change the content of your playlist between the first time it's played and the n

Re: [Savonet-users] playlist reloading

2014-11-29 Thread Jonathan
right all. the more i use the watch function, the more I understand what it does... well, kind of! but, here's the problem that I'm having... when I do something like the following: playlistname = playlist.once(reload_mode = "watch","/path/to/playlist1.txt") Take that line for example... that lin

Re: [Savonet-users] playlist reloading

2014-11-28 Thread Jonathan
and how would I use the watch function? I believe that this is what I'm looking for. I have tried it and I got some kind of acception error... I can't remember what it is right now and I didn't copy it yet. On 11/28/2014 8:18 PM, Jonathan wrote: > Okay... my question is... when it switches to tha

Re: [Savonet-users] playlist reloading

2014-11-28 Thread Jonathan
Okay... my question is... when it switches to that particular playlist with playlist.once, will it reload that particular playlist? the reason Im' asking this is because of the fact I had a playlist that I have changed but, it did not read it at all. is this where the reload motes come into pla

Re: [Savonet-users] playlist reloading

2014-11-28 Thread Jonathan
one more question. is the switch parameter called by that as well... I mean the playlist.once function? The reason I'm asking this is because I built my own scheduler and when it switches to that playlist at the time when it switches, it reads and reloads it if need be? I'm sorry I'm asking to

Re: [Savonet-users] playlist reloading

2014-11-28 Thread Dane Streeter
HI Jonathan your code should be formatted like so: playlistname = (playlist.safe(mode="normal",reload=600,"/path/to/playlist.txt ")) Hope this helps. Dane Jonathan 28 November 2014 14:05 Hello all. so, I have yet another question... so I do have my schedu

Re: [Savonet-users] playlist reloading

2014-11-28 Thread Yoann F
"Reload" argument is for the regular playlist function, not for playlist.once ! With playlist.once, just give the path to the playlist, it will be loaded every time it is called by the function, so every change in the mean time will be taken into account. 2014-11-28 15:05 GMT+01:00 Jonathan : >

[Savonet-users] playlist reloading

2014-11-28 Thread Jonathan
Hello all. so, I have yet another question... so I do have my schedules set up and stuff like that, but, I just have a question. is there a way that I could use the reload parameter with the playlist.once function? The reason I'm asking that is because I have tried doing the following. playlistn

Re: [Savonet-users] playlist reloading

2013-08-11 Thread Rafael Korbaš
Romain Beauxis writes: > > Hi Rafael!2013/8/7 Rafael Korbaš >> Hi guys!>> Thank you for such a great tool as liquidsoap, but I have a problem with the playlist. I'm working on some online radio and I have the following liquidsoap script: > > >> # This function is called when> # a new metadata

Re: [Savonet-users] playlist reloading

2013-08-11 Thread Romain Beauxis
Hi Rafael! 2013/8/7 Rafael Korbaš > > Hi guys! > > Thank you for such a great tool as liquidsoap, but I have a problem with the playlist. I'm working on some online radio and I have the following liquidsoap script: > > # This function is called when > # a new metadata block is passed in > # the s

[Savonet-users] playlist reloading

2013-08-08 Thread Rafael Korbaš
Hi guys! Thank you for such a great tool as liquidsoap, but I have a problem with the playlist. I'm working on some online radio and I have the following liquidsoap script: # This function is called when # a new metadata block is passed in # the stream. def apply_metadata(m) = title = m["filena

Re: [Savonet-users] Playlist reloading and fault tolerance

2009-10-20 Thread Alessandro Ranellucci
On 19-10-2009 at 18:34, Alessandro Ranellucci wrote: >I definitely agree with your thougths. add_protocol is very >interesting. I will look into using it for this workflow: > >- liquidsoap triggers the reload of the playlist (via the telnet >command > or the configuration timeout)

Re: [Savonet-users] Playlist reloading and fault tolerance

2009-10-19 Thread Alessandro Ranellucci
On 19-10-2009 at 17:11, David Baelde wrote: >How about you setup your own little protocol that copies a file in a >secure (temporary) place before playing. (Look into the add_protocol >function, and perhaps at the cookbook.html and concepts.html in the >doc, and ask for help here if you n

Re: [Savonet-users] Playlist reloading and fault tolerance

2009-10-19 Thread Romain Beauxis
Le lundi 19 octobre 2009 07:56:03, Alessandro Ranellucci a écrit : > >Mmm, we had similar issues a long long time ago, and we > allowed some > >illegal stuff like that, only issuing a warning. Maybe your situation > >is slightly different. Can you give more details, send a log. It > >matte

Re: [Savonet-users] Playlist reloading and fault tolerance

2009-10-19 Thread David Baelde
Hi, As said before, I'm open to enhance liquidsoap's fault tolerance, and we've already made trade-offs in that direction. Here is the log message I was talking about the other day: log#f 2 "Decoder %s betrayed us on %S!" format filename If this is detected (it happens in case of file deletion)

Re: [Savonet-users] Playlist reloading and fault tolerance

2009-10-19 Thread Alessandro Ranellucci
On 18-10-2009 at 20:20, David Baelde wrote: >> 2) it appears that if a file is deleted that was listed in the >>playlist, >>    the program crashes; is there a way to have liquidsoap just >>skip that item and move onto the next one in the playlist? > >Mmm, we had similar issues

Re: [Savonet-users] Playlist reloading and fault tolerance

2009-10-18 Thread David Baelde
Hi, On Sun, Oct 18, 2009 at 3:21 PM, Alessandro Ranellucci wrote: > 1) is there a manual way to have liquidsoap reload a playlist > before the >    reload timeout? Something like a SIGHUP or a telnet command > would be very useful. Yes, playlist() offers a "reload" command in the server (e.g. te

[Savonet-users] Playlist reloading and fault tolerance

2009-10-18 Thread Alessandro Ranellucci
Hi all, I've got two questions about playlists: 1) is there a manual way to have liquidsoap reload a playlist before the reload timeout? Something like a SIGHUP or a telnet command would be very useful. 2) it appears that if a file is deleted that was listed in the playlist, the program