I’m not really sure the best approach here either. The scheduling software (pypo-playout) mixed with liquidsoap has some weird bugs that I have yet to fully understand the root cause. For instance we sometimes have shows repeat or get off schedule by an hour or two. When I looked at the logs there wasn’t anything that stuck out as an obvious cause. Once we had a bug where flac files weren’t playing back in liquidsoap and I tried to schedule them and it really screwed up the schedule for my show and kept repeating the same track over and over again. So it maybe that we really need to dive in deep and rework the way we interact with liquidsoap. This is I think the biggest source of frustration that people will experience when they are using LibreTime. I haven’t dedicated the time to really figuring out how to properly test it or even how exactly we are using liquidsoap to do everything.
Adding in the watched folder where files can change is likely to cause a whole lot of new issues but it might also help us figure out a way to better test the sync and rewrite the way the two interfaces interact with each other.
In theory the dashboard is supposed to be the source of truth for what is playing and changes made to the schedule should be seen in what is played back over the output but this isn’t always the case and there are various ways we can inadvertently get them out of sync. One approach would be to develop a set of automated tests we can run or even manual tests so that we can explore where exactly we are either misusing liquidsoap instructions or have a bug in pypo. The cache issue you brought up is a good one but it’d be good if we had a number of failing tests that we can then develop solutions to vs. throwing darts blindly and hoping that things get fixed.
If you want to take the lead on any part of solving this feel free, I’ll help how I can and hope to be able to dedicate some more time to really fix this in the future. But I’d probably be more helpful if this was a group initiative or there was someone else like you taking the initiative so that I could help.