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 line works fine all by itself, but 
when I add the watch function in another playlist, like so,
playlistname = playlist.once(reload_mode = "watch","/path/to/playlist2.txt")
Every time I check the script, I would get an error like this...
  Fatal error: exception Inotify.Error("add_watch", 2)
Note: This error appears at the end of the file... so am I suppose to 
add something in there to have liquidsoap watch multiple playlists? 
Seems silly to me. Trying to figure this out yet again.


On 11/28/2014 10:15 PM, Jonathan wrote:
> 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 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 play?
>> On 11/28/2014 7:34 AM, Mark van Dijk wrote:
>>> On 11/28/2014 03:09 PM, Yoann F wrote:
>>>> "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.
>>> playlist.once apparently does have a reload_mode.
>>>
>>> Quoting from the reference:
>>>
>>> playlist.once
>>>
>>> (?id:string,?random:bool,?on_done:(()->unit),
>>>     ?reload_mode:string,string)->source('a)
>>>
>>> Custom playlist source written using the script language. It will read
>>> directory or playlist, play all files and stop.
>>>
>>>        id (string – defaults to ""): Force the value of the source ID.
>>>        random (bool – defaults to false): Randomize playlist content
>>>        on_done (()->unit – defaults to {()}): Function to execute when the
>>> playlist is finished
>>>        reload_mode (string – defaults to ""): If set to “watch”, will be
>>> reloaded when the playlist is changed
>>>        (unlabeled) (string): Playlist URI
>>>
>>> Maybe, for my own question, I can do something with on_done. I'll have
>>> to see.
>>>
>>> Mark
>>>
>>> ------------------------------------------------------------------------------
>>> 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
>
> ------------------------------------------------------------------------------
> 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

Reply via email to