Hi Samuel,

I know you are able to pass a directory to `playlist` and it will play
the files in that directory. You can try using the 'watch' parameter
to reload the playlist whenever the file is changed (not sure if that
works with directories), or passing an integer to reload every x
seconds.

my_playlist = playlist(reload="watch","/mnt/play")

Alternatively, if that does not work for you, its also possible to
perform a shell call with `get_process_lines`, where you can call any
external script and return the result, if you are more familiar with
scripting in another language.

I'd probably say the standard playlist functions might suit your needs
though. Please go to this page and search for 'playlist' for
documentation.

http://savonet.sourceforge.net/doc-svn/reference.html

On Tue, Nov 11, 2014 at 8:20 AM, genocid3 <[email protected]> wrote:
> Hi everyone,
>
> I created LiquidSoap source that get posted to an IceCast mount, the source
> is in fact a playlist based on a local directory where new songs will be
> added (e.g. /mnt/play/), that gets reloaded every X seconds so that any new
> file will, sooner or later, be played.
>
> What i would like to do is to move any file played to another storage (e.g.
> /mnt/archive) so that the source folder will only contain files that are
> still to be played.
>
> Is there any kind of handler to be placed in the startup.liq script to
> achieve this (like a handler that call a bash script)?
>
> Thank you in advance,
> Emanuel.
>
>
> --
>
> There are 10 people in the world, those who understand hexadecimal and those
> who don't...the other 14 just don't care.
>
> ------------------------------------------------------------------------------
> Comprehensive Server Monitoring with Site24x7.
> Monitor 10 servers for $9/Month.
> Get alerted through email, SMS, voice calls or mobile push notifications.
> Take corrective actions from your mobile device.
> http://pubads.g.doubleclick.net/gampad/clk?id=154624111&iu=/4140/ostg.clktrk
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>



-- 
-Tony Miller
github.com/mcfiredrill
@freedrull
freedrool.us

------------------------------------------------------------------------------
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