RandomEngy / VidCoder

A Blu-ray, DVD and video file transcoder for Windows.
http://vidcoder.net
GNU General Public License v2.0
668 stars 42 forks source link

Add a custom delay to the Watcher #1202

Open GOvEy1nw opened 6 months ago

GOvEy1nw commented 6 months ago

Feature details

The watcher is a great feature, however, I'm trying to use it with a folder that is actively being used to download files into, because of this, I've noticed that the watcher can sometimes 'pick up' a file more than once due to how some downloaders works. It'd be great if we could add a custom 'pick up delay' to the watcher, which when activated would do the following:

There might be a more elegant way of solving this issue, such as VidCoder Watcher just not adding files that are already in the list, but my thinking with the above suggestion is to then make it a bit more flexible for those that might need it to add the 'duplicate files' for whatever reason, as the custom delay would only temporarily ignore 'duplicates'.

RandomEngy commented 5 months ago

The way that the watcher currently handles this is by waiting for any write locks to be released before adding the file. In your case is the downloader releasing the write lock, then writing more data to the file later?