niemert [Tue, 6 Aug 2019 19:41:19 +0000 (21:41 +0200)]
access: added missing break for connection limit type
Before update aa_conn_limit_streaming was always set to ae_conn_limit, if limit type was set to ALL in gui.
Now aa_conn_limit_dvr and aa_conn_limit_streaming is set correctly
StefanBruens [Tue, 8 Oct 2019 23:52:50 +0000 (01:52 +0200)]
Avoid configure checks being optimized away with LTO
In case the checks are compiled with CFLAGS including "-O1 -flto" (or any
other optimization level), a "test()" function not referenced by by main
will be optimized away and discarded prior to the final linking step, and
there will be no undefined symbols, thus the checks always succeeds.
This at least affects the "strlcpy"/"strlcat" checks, but may affects other
checks as well.
CC src/descrambler/tvhcsa.o
In file included from /home/buildroot/autobuild/instance-0/output/build/tvheadend-8f1de1621d78c91431238176bf4f6290870a031a/src/tvhlog.h:30:0,
from src/descrambler/tvhcsa.h:30,
from src/descrambler/tvhcsa.c:19:
/home/buildroot/autobuild/instance-0/output/build/tvheadend-8f1de1621d78c91431238176bf4f6290870a031a/src/tvh_thread.h:163:25:
error: unknown type name '__do_not_use_pthread_mutex_t'
#define pthread_mutex_t __do_not_use_pthread_mutex_t
E.Smith [Wed, 1 May 2019 17:52:10 +0000 (18:52 +0100)]
xmltv: Avoid outputting lang tags in xmltv for only one language, fixes #5630
For most sources of guide information, we only have one language.
If we output xmltv with language tags just makes the xmltv output
larger with no benefit.
E.Smith [Wed, 1 May 2019 11:55:14 +0000 (12:55 +0100)]
htsp: Allow basic htsp format, fixes #5630
The tvguide can be very large for very low memory devices. So allow
a basic format which excludes the long description fields, thus
reducing memory overhead.
E.Smith [Wed, 1 May 2019 11:37:32 +0000 (12:37 +0100)]
xmltv: Allow sending basic xmltv format, fixes #5630
Some devices have very limited memory and can not handle our full
xmltv output. For example, a current make of TV requires the xmltv
should be less than 5MB and only parses titles, not descriptions.
So we now add an enum to the user access so the user can specify
a different format.
Basic format gives you a limited xmltv document.
Basic (no hash) gives you the limited xmltv document but avoids
using hashes for channel ids and uses the name instead since some
(broken) TVs require this.
bugfix for autorecs duplicate episode number detection in autorecs
"record if different episode number" doesn't work as expected in the master branch:
see https://tvheadend.org/issues/5632
With this modification, the season will be taken into account,
as it was before, in order to determine if two episodes have different episode numbers or not.
Peter Vicman [Tue, 24 Sep 2019 12:13:45 +0000 (14:13 +0200)]
bouquet: fix overflow when building for 32-bit system On 32-bit system hash value from service can be truncated.
For example with #SERVICE 1:0:1:835:3EA:2174:EEEE0000:0:0:0
hash value EEEE0000 become 7FFFFFFF and there is no match in function mpegts_service_find_e2().
They renamed the symbol that was used to determine whether the
"hdhomerun_discover_find_devices_custom" needed to be aliased,
causing an FTBFS. Instead, recognize both the old and new symbols.
Bug #5366 reported control codes appearing in EPG data on UK Freeview; this was fixed in commit 3ae6d947a4d074b3498e59f82d5a860273b0ae7f. However the same issue affects DVB-T2 channels where the EPG is Huffman coded.
freesat_huffman.c already has code to suppress these control codes, however the decoding is stopped when one is encountered and so the text is truncated. This patch drops the control codes but continues to decode the remaining text.
E.Smith [Sun, 27 Jan 2019 23:46:33 +0000 (23:46 +0000)]
dvr: New fmt spec for per-dir seasons and one movie per dir. (#4667)
Previously the $q format specifier would only output movies as:
tvmovies/title (yyyy).ts
However, a common alternative is to store each movie in its
own sub-directory:
tvmovies/title1 (yyyy)/title1 (yyyy).ts
tvmovies/title2 (yyyy)/title2 (yyyy).ts
Similarly for episodes we output:
tvshows/title/title - SxxEyy.ts
But a common alternative is to have one directory per season:
tvshows/title/Season 1/title - S01Eyy.ts
tvshows/title/Season 2/title - S02Eyy.ts
So we now add a "$3q" to output these common alternatives, as requested
in the forums.
Also add equivalent "$3Q" to output without the "genre" prefix
i.e., without "tvshows/" or "tvmovies/".