Feature #3197
Possible to merge dvr retention and removal?
0%
Description
Hi,
Maybe it's just me, but why do we have a removal field and a retention field, isn't this a bit complicated to a normal user?
If I'm right:
retention = days to keep the dvr entry in the database?
removal = days to remove the actual file from disk?
If removal is smaller than retention, does removal then also delete the database entry?
So is this 'removed from disk dvr entry' still exported thought htsp and visible in the WEBUI?
In Kodi we have one field called 'lifetime' and we want to delete the file after that period (so removal), but also the entry should then be wiped out of the database.
Maybe it's just easier to keep retention (drop removal) and add an option to the dvr config 'also delete the file from disk when retention expired'?
History
Updated by Sam Stenvall about 9 years ago
+1 to this, integrating properly with Kodi would be easier and less confusing if these two were merged.
Updated by Jaroslav Kysela about 9 years ago
The logic is (should be added to help):
if (removal > retention) removal = retention;
And the retention might be greater than removal (to keep logs - database entries, but save disk space). The user client might blindly set 'removal = retention' if user clicks 'delete files after lifetime' in client's GUI. Note that previous implementation didn't removed files from the storage at all.