He's right. I don't have a way of triggering the re-scan manually though (yet).
Have there been any further thoughts on how to trigger a rescan?
My goal is to be able to watch Countdown without ads with our afternoon cup of teas at 3:30.
Recently I had noticed that DetectAds was not processing the recording until after the start of recording of The Chase at 5:00, I thought that the problem was because the box was going to sleep between 3:00 and 5:00 so I scheduled a weekday reminder for that period but it actually made the problem worse because the DlNA index didn't kick in until the end of The Chase.
I have solved the problem by splitting the reminder into two periods 2:59-3:12 to allow the recording to finish and for Flatten to move the recording and then another reminder from 3:15 to 5:00 to cause a restart and trigger the DLNA scan, decryption and Detectads processing.
This works but is cumbersome to set up and could fail if we happen to be watching TV at the time the reboot is scheduled and it would be a lot better if Flatten and Sweeper could initiate a DLNA rescan when they do something that invalidates the Index.
Looking at the logs I see that files are still locked and cant be Flattened at 15:00 but are Flattened at 15:10, then following the reboot Decrypt processes the file from 15:20 to 15:22:32 then DetectAds processed the recording from 15:30 to 15:39 so the recording is available for use at 15:40
It can be seen that quite a lot of the elapsed time is actually spent waiting for the next 10 minute cycle for the next phase of processing. While some delays are inevitable since it not possible to predict how long it will take to process a file it seems it might be possible to reduce some of the delays by rescheduling the scans slightly.
Most TV shows are scheduled to end either on the hour or half hour so although they some times finish (AR) a few seconds early they are unlikely to be indexed for decryption by the routine :00 or :30 scan but there would be a better chance if the routine scans were on the odd minute :05, :15. :25. :35. :45, :55.
Is there any ability to modify the scheduling of the Auto scans? Leaving the DetectAds scans on the even minutes would then reduce the delay between completion of decryption and ad detection.
*EDIT* I have now edited Chrontab to move the Auto scan by a few minutes and will see next week whether it makes the expected improvement