]> git.ipfire.org Git - thirdparty/tvheadend.git/commit
dvr: Add option to automatically delete recording after playback.
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Wed, 17 Oct 2018 14:28:46 +0000 (15:28 +0100)
committerJaroslav Kysela <perex@perex.cz>
Mon, 19 Nov 2018 12:38:53 +0000 (13:38 +0100)
commitd117b0348a4f36ecc8eca91e3c55ee01fcc49e2e
treecd1f063956eb4e647a3ad288caced26a3539145b
parent6b99571d1dc4ef61acf93a598fc434eba465c0d0
dvr: Add option to automatically delete recording after playback.

Previously when watching a programme, the user usually has to then
manually delete the programme to recover disk space, or wait for its
retention to expire.

So we now add an option to Config->Recording->DVR Profile. This allows
the user to select time after watching to automatically delete the
recording (unless it is marked as "keep forever"). Default is disabled
(do not delete after playback).

For example, if the user specifies "2 days" then we'd delete the
recording two days after playback, even if the retention period is "3
months".

"Playback" can vary based on client. Some clients read and cache the
entire file before starting playback, so the file would be marked as
watched immediately. Other clients only buffer a small amount, so the
file will be marked as watched near the end of the show.
src/dvr/dvr.h
src/dvr/dvr_config.c
src/dvr/dvr_db.c
src/htsp_server.c
src/satip/server.c
src/webui/webui.c
src/webui/webui.h