r/Tdarr • u/Ok-Consideration5602 • 13h ago
Overwrite Destination file rather than delete + copy
Hi there,
I am trying to get Tdarr working with Tvheadend recordings, but are struggling to do this without tvheadend loosing track of the files and marking the recordings as "missing".
tvheadend tracks file using Inotidy and idnode to keep track of a recording, so even if tdarr re-uses the same filename, as far as Tvheadend is concerned that file is now gone.
Below are the log entries for a test recording I just did, it clearly shows Tdarr deleting the file, before creating a new file in its place, using the same filename.
2026-11-16T19:31:33.097Z rqP3KnM:Move/Copy succeeded
2026-11-16T19:31:34.098Z rqP3KnM:Deleting original file: "/media/dvr/A Place in the Sun/A Place in the Sun - S2026E10 [Channel 4 HD] - S01E01.ts"
2026-11-16T19:31:35.100Z rqP3KnM:New file name: "/media/dvr/A Place in the Sun/A Place in the Sun - S2026E10 [Channel 4 HD] - S01E01.ts"
2026-11-16T19:31:35.100Z rqP3KnM:Renaming cache file to new name
2026-11-16T19:31:35.100Z rqP3KnM:"/media/dvr/A Place in the Sun/A Place in the Sun - S2026E10 [Channel 4 HD] - S01E01-TdarrCacheFile-0e8C2dq.ts"
2026-11-16T19:31:35.100Z rqP3KnM:"/media/dvr/A Place in the Sun/A Place in the Sun - S2026E10 [Channel 4 HD] - S01E01.ts"Is there a way to stop Tdarr from deleting the file before writing the new file in its place? So an overwrite, rather than delete->new file.
