Project

General

Profile

Feature #3197

Possible to merge dvr retention and removal?

Added by glenn ch over 5 years ago. Updated over 5 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
General
Target version:
-
Start date:
2015-10-22
Due date:
% Done:

0%

Estimated time:

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

#1

Updated by Sam Stenvall over 5 years ago

+1 to this, integrating properly with Kodi would be easier and less confusing if these two were merged.

#2

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.

Also available in: Atom PDF