Thanks for the script, though it doesn't seem to work. I presume this is supposed to be run from the client and not the server? All I get is some HTML output in the terminal when I run it, and it seems more of a bodge workaround than correcting something that, to my mind, is is more of a bug.
This is the edited script for something that was recorded last night. Tvh is available for all users on the LAN (*) so I removed the user/pass sections:
#!/bin/bash
SRC="/media/infi/nfs/Recordings/The Good Doctor S02E10 - Quarantine Part One - 2022-01-16 21-00.ts"
DST="/home/infi/Videos/The Good Doctor S02E10 - Quarantine Part One - 2022-01-16 21-00.ts"
TVH_IP="192.168.0.20" # IP address of TVH server
TVH_PORT="9981"
API_ENDPOINT="/api/dvr/entry/filemoved"
curl -s "http://${TVH_IP}:${TVH_PORT}${API_ENDPOINT}" \
--data-urlencode "src=${SRC}" \
--data-urlencode "dst=${DST}"
This is the terminal output:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>404 Not Found</TITLE>
</HEAD><BODY>
<H1>404 Not Found</H1>
</BODY></HTML>
I tried both authentication types as Tvh is set to allow plain and digest.
As mentioned, I only get intermittent failures when using NFS. Today for instance I've edited two TV programs and copied them back to the server without issue; they still show in the completed recording section. It's only seemingly randomly that Tvh decides the file has gone missing when I'm copying it back. The script would also add an extra layer of effort every time I edit my files, which is most days, as I'd also have to edit the script every time instead of just cut/pasting.