Hey there! I believe that we have two implementation for this functionality: - Default implementation looks at the directory's last modified date. If that changes, the playlist is reloaded. It can be a little crude. - The inotify implementation uses inotify ( https://man7.org/linux/man-pages/man7/inotify.7.html) and watches for the following events: Inotify.S_Modify; Inotify.S_Moved_to; Inotify.S_Moved_from; Inotify.S_Delete; Inotify.S_Create;
Hope that helps! Le lun. 28 sept. 2020 à 13:23, jaaky 325 <zpunk...@gmail.com> a écrit : > Been using that setup for awhile. Seems to work well: > > s0n1ks = playlist(mode='randomize', reload_mode="watch", > "/home/liquidsoapuser/music/s0n1ks/“) > > Besides adding new files, > we also remove and update existing files in the directory all the time. > I understand this is not truly supported and the log files confirm this. > But it does seem to eventually self-correct. > Not sure of the proper way to manage these changes… > perhaps switching to a “mirror” directory and then updating the original > and then switching back or something. > Does anyone have a simple elegant solution? > > Thanks > ~scott > > > On Sep 28, 2020, at 2:09 AM, Florian Reiterer <florianreite...@gmx.de> > wrote: > > > > Hi all, > > > > Would the playlist parameter „reload_mode=watch“ work when it points to > a directory? > > That as a result of adding files to a directory that is played out in > random shuffle mode the playlist gets reloaded? > > > > Thanks for a confirmation! > > > > Regards, > > Florian > > > > _______________________________________________ > > Savonet-users mailing list > > Savonet-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/savonet-users > > > > _______________________________________________ > Savonet-users mailing list > Savonet-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/savonet-users >
_______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users