E.Smith [Wed, 17 Oct 2018 14:28:46 +0000 (15:28 +0100)]
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.
E.Smith [Tue, 9 Oct 2018 00:35:49 +0000 (01:35 +0100)]
Need to delete files on complex scheduling when replacing timer after crash.
Scenario: Complex scheduling enabled. Recording ok, then crash and restart.
In this case, the recording is not currently running, so we can find a
better recording. If there is a better recording later in the week,
that show will get preference (since complex recording states we don't
want a partial recording so prefer a later date for a full recording).
But, we used to destroy the dvr_entry, but this does not delete its
associated files so they would be left on disk as orphans/unreferenced
from any dvr/log file.
k0rtina [Mon, 12 Nov 2018 08:46:27 +0000 (19:46 +1100)]
updated nginx example
the tvheadend no longer seems to like the = sign in the option
--http_root /my/tvh/server (working)
--http_root=/my/tvh/server (doesnt work)
nginx config updated to include the Connection "upgrade" to deal with the WS: /comet/ws traffic
E.Smith [Fri, 16 Nov 2018 09:17:53 +0000 (09:17 +0000)]
dvr: Fix season/episode unique test when recording.
The test for season/episode numbers the same has become broken during
the changeover of types from string to int. So it was only checking
episode numbers, meaning that S02E01 would not record if S01E01 was
available.
E.Smith [Sat, 6 Oct 2018 15:18:17 +0000 (16:18 +0100)]
fanart: Comment out version field in module capabilities.
The version field in the scripts should be the same version as
Tvheadend. However it does not seem worthwhile at the moment to
sed a version number in to the scripts since most people will
install via a package manager.
E.Smith [Thu, 4 Oct 2018 17:07:33 +0000 (18:07 +0100)]
fanart: Tidy logging in Python script.
We want to avoid logging stack traces unless the user explicitly
enables debug, otherwise we get tracebacks whenever user does
not specify an apikey for a module they do not wish to use
(but have not disabled).
E.Smith [Wed, 3 Oct 2018 23:17:53 +0000 (00:17 +0100)]
fanart: Update tmdb to support tv lookups.
Previously we only support movie lookups on tmdb since the
module we used did not support tv lookups. Now we no longer
use an external module we can perform tv lookups on tmdb too.
E.Smith [Wed, 3 Oct 2018 22:39:58 +0000 (23:39 +0100)]
fanart: Rewrite to remove dependency on external tmdb module.
The information we need can easily be retrieved via a
query so avoid the dependency on an external module and
implement the tmdb api retrieval logic ourselves. This
also means we are no longer constrained to be python2.7 only.
E.Smith [Tue, 2 Oct 2018 18:00:42 +0000 (19:00 +0100)]
fanart: Add basic tvdb lookup.
The lookup is by title+year (+language) only (episode-specific
fanart is not yet retrieved).
To use with Tvheadend, the extra arguments in the grabber need to
include:
--tvdb-key XX
And an optional two character languages as csv:
--tvdb-languages en,it
E.Smith [Wed, 3 Oct 2018 23:54:45 +0000 (00:54 +0100)]
dvr: Remove fanart entries from the list until we process one.
We might have entries on our list of pending fanart fetches that
no longer need fetching (user changed config, etc.) So keep
removing entries from the list until we find ones that need
a fanart fetch.