[mythtv] patch - add category to return value from HandleRecordingQuery

Kirby Vandivort kvandivo at ks.uiuc.edu
Sun Jan 4 19:11:25 EST 2004


Before, the program's category wasn't getting inserted into the
ProgramInfo object when HandleRecordingQuery was called.  This remedies
that.  as it happens, a future patch from me will use this, but this
should probably be in there either way.

-- 

Kirby Vandivort                      Theoretical and 
Senior Research Programmer            Computational Biophysics 
Email: kvandivo at ks.uiuc.edu          3051 Beckman Institute
http://www.ks.uiuc.edu/~kvandivo/    University of Illinois
Phone: (217) 244-5711                405 N. Mathews Ave
Fax  : (217) 244-6078                Urbana, IL  61801, USA
-------------- next part --------------
Index: programs/mythbackend/mainserver.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/programs/mythbackend/mainserver.cpp,v
retrieving revision 1.109
diff -b -u -2 -r1.109 mainserver.cpp
--- programs/mythbackend/mainserver.cpp	24 Dec 2003 05:42:14 -0000	1.109
+++ programs/mythbackend/mainserver.cpp	5 Jan 2004 00:01:24 -0000
@@ -580,5 +580,5 @@
     thequery = "SELECT recorded.chanid,starttime,endtime,title,subtitle,"
                "description,hostname,channum,name,callsign,commflagged,cutlist,"
-               "autoexpire,editing,bookmark FROM recorded "
+               "autoexpire,editing,bookmark,category FROM recorded "
                "LEFT JOIN channel ON recorded.chanid = channel.chanid "
                "ORDER BY starttime";
@@ -648,4 +648,6 @@
             flags |= query.value(14).toString().length() > 1 ? FL_BOOKMARK : 0;
 
+            proginfo->category = QString::fromUtf8(query.value(15).toString());
+
             proginfo->programflags = flags;
 


More information about the mythtv-dev mailing list