Combined patch from mythtv ticket #12308
Prevent --syslog, --logpath and --enable-dblog if --nologserver is used

Fixes #11992.

Signed-off-by: Paul Harrison <pharrison@mythtv.org>
(cherry picked from commit be72636b9e34b1b9fb032a1da578a742d562d0b9)
oops, no debug win
Mark's 20141111-* patches from #10793
oops i forgot to git add all of Mark's files

these are files added by Mark's 20141111 patches on mythtv#10793
put comm detector type declarations in their proper place
Properly identify channel-specific rules in Recording Rules.

This was broken when channel rules were converted to all rules using
the this channel filter.  Based on a patch from lomion@aon.at.

Refs #12267

(cherry picked from commit a397b94ffb5cf201aef4fdd9ccd2b28780713bed)
Add support for explicitly recognising QAM-256 with DVB-T2. This _may_ help with scanning on devices that don't support 'auto' modulation detection.

(cherry picked from commit 864d985786a6f0f0fe2b93b4539c12ee2b0e09e2)
(cherry picked from commit 376955a091dbf69f7cc233fa1bf3255401e80367)
need to add a description to get --highres to work
Commercial Detector 3

No code reused from other commercial detectors.  This makes the code a *lot* cleaner.  That is not to say that this wasn't influenced by them, but the code is significantly different both in organization, and in style, and in clutter.

Initially supporting Logo, Blanks, and Scene Changes.  May try to do subtitles or audio in the future.
Reorganized directory structure.  Things were becoming too cluttered with 5 different (Classic, CD2, PrePost, CD3, NextGen) flaggers in here.
oops this was for debugging
slight tweak to break start/end frames

We try to maintain 1s of blank before/after the break when there is that much blank present.  Otherwise we keep all of the blank before the commercial, and none of the blank after.
Fix missed cases in earlier channel-specific rules change.

Refs #12267

(cherry picked from commit d3f5031e08c0a9e0fa783310afa4d293bacf6ce0)
Revert "Prevent --syslog, --logpath and --enable-dblog if --nologserver is used"

Seems those options are valid for --nologserver. That option just means don't run
the external mythlogserver but do the logging internally.

Refs #11992.

This reverts commit ec06dfba8e22008ac97af81f997e9b521eca62ae.
SSDP: Check that the peer address is available before doing the local network check.

Refs #12305

(cherry picked from commit d20c163ee82c38f9d8fe4652b7a811af61925de7)
Properly translate star ratings in XMLTV parser.

Convert from zero based star-ratings in XMLTV to one based star-ratings
in MythTV.
(cherry picked from commit c12af87629629295975fdb1ede28072ad2fc1247)
SSDP: Disable reflection attack mitigation for now, it's triggering false positives.

(cherry picked from commit 02e92a265c1e9825bb58806156fbf31bd740515a)
fix braino in c12af87
(cherry picked from commit 0f7d7ff0660a12022b76cdb8d6d6bceda032f540)
added debug frame logging and reprocessing to make testing the aggregator easier on large numbers of recordings

fixed maxBreakLength... was a case where we would put 2 breaks back to back and go over the length

changed logo detector to detect in the middle and use a variable threshold

now we'll ignore logo results if, in the end, less than half the show had the logo anyway