BrenekH / encodarr

Self-hosted web app for encoding files to a target format using distributed computing.
Mozilla Public License 2.0
63 stars 6 forks source link

Check if completed file should actually be copied back into the folder #23

Open BrenekH opened 3 years ago

BrenekH commented 3 years ago

If a Job that is running is replaced with a new file(for example, the file is upgraded), Encodarr will still copy the completed file even though it is not relevant.

The problem is detecting this kind of change. A hash could be computed when the Job is dispatched/generated and checked again when the file is ready to be copied back. This only works for files named the same, but some file existence checks could supplement that as well.

Whatever the solution, it probably should be an option for the user.