Tdarr icon indicating copy to clipboard operation
Tdarr copied to clipboard

[Feature request] Health check before transcoded/changed file is moved into place

Open tyhawk opened this issue 4 years ago • 1 comments

Sometimes transcodes or other jobs don't go as they should and the output file is corrupted. Its health is checked after it is moved into place, but then it already replaced the original file with the corrupt version, forcing you to replace it again with the original file. I've set Tdarr health checks to "Thorough" to catch these files ASAP as I noticed the "Quick" health check can easily miss corruption as long as the headers are okay (seen this a number of times with version 1).

As version 2 already has a cache directory, it would be great if a health check would be performed on the output file. If the health check is okay, it will be copied into place by the server, otherwise marked as failed and either deleted or left in the cache dir. This should in theory prevent any corrupted files from slipping through and ending up in your libraries.

tyhawk avatar Feb 05 '21 10:02 tyhawk

This would also help with libraries that send completed files to a different output directory, since at the moment the post-encode healthcheck always checks the file in the Library file, and doesn't seem aware that the new file is elsewhere

FreelancerJay avatar Sep 12 '22 07:09 FreelancerJay

This would also help with libraries that send completed files to a different output directory, since at the moment the post-encode healthcheck always checks the file in the Library file, and doesn't seem aware that the new file is elsewhere

Currently on 2.00.25 with a different output directory set and source file set to delete, the post-transcode health check takes place after the file is moved to the output directory, but not before Sonarr/Radarr pick up the file and rename/reorganize it, so the second health check always fails since the file was moved and renamed.

This feature would solve my problem as well as the problem of accidentally overwriting good files with broken files. +1

dbensmith avatar Aug 14 '23 21:08 dbensmith

Added a flow plugin for this: image

HaveAGitGat avatar Oct 04 '23 05:10 HaveAGitGat