Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
DVR: Fix the retention condition
Introduced by "[htsp] allow clients to get/set dvr priority and retention"
- Loading branch information
d11c919There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure whether this is the right approach.
The question is what a retenetion of zero means. Is it "not set" or "expire immediately"? Currently this two really very different values cannot be distinguished.
Would be a better approach to define DVR_RETENTION_NOT_SET as -1 and to default de_retention to this value? Makes things really clear.
d11c919There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not perfect, I know. Someone might improve it, but the problem is that the default value is zero which expired all finished/failed entries . Note that the expire immediately behaviour can be configured using the configuration profile, so it's no regression.
d11c919There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d11c919There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EricV sure. Intention is to restore the old behavior, not to change it.
d11c919There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ksooo : It's not about the old behaviour, because this per-dvr-entry retention config was added in last days and caused regressions.
d11c919There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@perexg . Absolutely. With "old behavior" I ment to remove recording entries when the recordings are actually expired according to user's preferences - short, to fix the regression introduced last week.
d11c919There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
d11c919There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@EricV : Yes, no change planned. Remove recording entries, leave corresponding files (mkv, ts2) on disk.