On 5/1/05, Stuart Morgan <[EMAIL PROTECTED]> wrote:
> This is one of the most annoying issues for me currently - of the 30 odd UK
> DVB channels 50% are junk (shopping channels, childrens channels etc) so I've
> flagged them as not visible. 

Yep, same problem here, and it's annoying enough to fix :) 

Patch is attached, seems to work fine in the 10 or so minutes testing
I've done so far.

James.
--- mythtv-0.18.orig/libs/libmythtv/tv_rec.cpp	2005-04-03 17:42:10.000000000 +0100
+++ mythtv-0.18/libs/libmythtv/tv_rec.cpp	2005-05-01 20:09:32.000000000 +0100
@@ -1034,7 +1034,6 @@
                   "channel.outputfilters, previouslyshown, originalairdate, stars "
                   "FROM program,channel,capturecard,cardinput "
                   "WHERE channel.channum = :CHANNAME "
-                  "AND channel.visible = 1 "
                   "AND starttime < :CURTIME AND endtime > :CURTIME AND "
                   "program.chanid = channel.chanid AND "
                   "channel.sourceid = cardinput.sourceid AND "
@@ -1627,7 +1626,8 @@
     QString wherepart = QString("cardinput.cardid = capturecard.cardid AND "
                                 "capturecard.cardid = \"%1\" AND "
                                 "capturecard.hostname = \"%2\" AND "
-                                "cardinput.sourceid = channel.sourceid ")
+                                "cardinput.sourceid = channel.sourceid AND "
+                                "channel.visible = 1 ")
                                 .arg(cardid)
                                 .arg(gContext->GetHostName());
 
_______________________________________________
mythtv-users mailing list
[email protected]
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

Reply via email to