﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
11053	let EITScanner cache negative lookups	dekarl@…	Karl Egly	"inspired by Göran Uddeborg

http://lists.mythtv.org/pipermail/mythtv-dev/2012-August/072902.html

{{{
--- libs/libmythtv/eithelper.cpp.orig   2012-08-27 21:27:14.005909017 +0200
+++ libs/libmythtv/eithelper.cpp        2012-08-27 21:28:10.981876447 +0200
@@ -648,8 +648,7 @@
         return max(*it, 0);
 
     uint chanid = get_chan_id_from_db(sourceid, atsc_major, atsc_minor);
-    if (chanid)
-        srv_to_chanid[key] = chanid;
+    srv_to_chanid[key] = chanid;
 
     return chanid;
 }
@@ -667,8 +666,7 @@
         return max(*it, 0);
 
     uint chanid = get_chan_id_from_db(sourceid, serviceid, networkid, tsid);
-    if (chanid)
-        srv_to_chanid[key] = chanid;
+    srv_to_chanid[key] = chanid;
 
     return chanid;
 }
}}}

Negative hits are relevant for all channels that have either been deleted or useonairguide disabled though there is some transmitted guide.
If a multiplex has no channel at all with useonairguide enabled the whole multiplex is skipped.

The patch is untested as of now as I'm running a modified version of the EITScanner at the moment."	Patch - Feature	closed	minor	0.27	MythTV - EIT	Master Head	medium	fixed			0
