VidCoder icon indicating copy to clipboard operation
VidCoder copied to clipboard

Add a custom delay to the Watcher

Open GOvEy1nw opened this issue 1 year ago • 1 comments

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:

  • A new file is added to the watch folder
  • VidCoder watcher sees this file, but instead of adding it directly to the encoding queue, it just acknowledges the file and internally begins the delay countdown
  • During the delay countdown, that same file is replaced/reloaded by the downloader, which VidCoder again acknowledges but recognises as the same file as the one in the delay countdown, and therefore doesn't attempt to add it as another file. Vidcoder will continue to do this for as long as the delay countdown is active
  • After the delay countdown, VidCoder finally adds the file to the encode queue

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

GOvEy1nw avatar Dec 31 '23 11:12 GOvEy1nw