Errm, is this how the DVR log is supposed to work?
Added by Hero of Shapeir over 10 years ago
I'm getting a lot of episodes duplicates that I didn't expect (I set my log retention to 180 days). So after spending some time digging through my logs, it appears that after you have completed a recording, watch it, and delete it, it ALSO disappears from the dvr/log folder.
Which means it gets recorded again the next time.
That can't be how it's supposed to work, right? Is there something wrong with my setup? Version 3.4.27 here.
Replies (1)
RE: Errm, is this how the DVR log is supposed to work? - Added by Hero of Shapeir over 10 years ago
For those with the same issue looking for a quick hack on 3.4.x, you can go into src/dvr/dvr_db.c and find dvr_entry_delete(), then at the end of the function, comment out dvr_entry_remove().
This will still remove recording files when you tell it to, but leave the log in the dvr/log directory for normal expiration after X days (whatever you have set). You will no longer have to worry about recording the same re-run every time you delete it.
On the downside, the completed items will show up as "Failed" after you delete the recordings, but that's the downside for a one-line hack, I guess.
Edit: If you want to get a little cleaner, you can make a copy of dvr_entry_remove() as dvr_entry_remove_leave_file() and just take out the call to hts_settings_remove(), and update the call in dvr_entry_delete() to it.