Possible to merge dvr retention and removal?
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'?
Updated by Jaroslav Kysela over 5 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.