So I have a script that I can run to delete duplicate TV shows where the DVR recorded a show and then I download a better quality version of that show. It works great. Except... Channels will not prune the recordings. I am running:
curl -XPUT http://127.0.0.1:8089/dvr/pruner/deleted
In the logs I see about 300 entries of this:
2025/01/30 16:54:47.741516 [DVR] Pruned 0 missing recordings
2025/01/30 16:54:47.741518 [DVR] Pruned 0 missing recordings
2025/01/30 16:54:47.741520 [DVR] Pruned 0 missing recordings
2025/01/30 16:54:47.741522 [DVR] Pruned 0 missing recordings
2025/01/30 16:54:47.741524 [DVR] Pruned 0 missing recordings
2025/01/30 16:54:47.741526 [DVR] Pruned 0 missing recordings
2025/01/30 16:54:47.741528 [DVR] Pruned 0 missing recordings
2025/01/30 16:54:47.741529 [DVR] Pruned 0 missing recordings
Then Channels will not remove the entries from the database
I try to play the file that was deleted and channels refuses to acknowledge and I get an error that it cant find it
2025/01/30 17:21:33.908668 [ERR] Failed to probe file #20838: stat /media/channelsdvr/2TB/DVR/TV/Doctor Odyssey/Doctor Odyssey S01E08 Quackers 2024-11-21-2059.mpg: no such file or directory
2025/01/30 17:21:33.908774 [HLS] Couldn't generate master playlist: Recording is missing: /media/channelsdvr/2TB/DVR/TV/Doctor Odyssey/Doctor Odyssey S01E08 Quackers 2024-11-21-2059.mpg
It can tell that the recording is missing. Then I manually prune missing recordings from the UI and I get no log entries and the entry is still present.
From the UI:
Error retrieving file #21827details: stat /media/channelsdvr/2TB/DVR/TV/High Potential/High Potential S01E11 The Sauna at the End of t 2025-01-28-2059.mpg: no such file or directory
Why wont prune work? I have used it before without issue.

