qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Enable Recording with mythtv protocol 32 to 35 (at least)


From: Iain McFarlane
Subject: [Qemu-devel] Enable Recording with mythtv protocol 32 to 35 (at least)
Date: Sun, 30 Dec 2007 17:22:58 +0000
User-agent: KMail/1.9.6 (enterprise 0.20071123.740460)

Hi all,

This patch allows mvpmc to schedule recordings with Mythtv protocol 32 to 35 
(and may do 36 but I haven't got a backend at that level to test)

Signed-off-by: Iain McFarlane <address@hidden>

Regards,

Iain

--- src/mythtv.c.orig   2007-12-29 09:21:39.000000000 +0000
+++ src/mythtv.c        2007-12-30 15:22:20.000000000 +0000
@@ -3130,6 +3130,35 @@
                                        '0')", \
                                        
sqlprog[which].seriesid,sqlprog[which].programid,(int)sqlprog[which].starttime,(int)sqlprog[which].starttime,(int)sqlprog[which].starttime);
                                break;
+                       case 32 ... 35:
+                               sprintf(query, "REPLACE INTO record ( \
+                                       
recordid,type,chanid,starttime,startdate,endtime, \
+                                       enddate,search,\
+                                       title,\
+                                       subtitle, \
+                                       description, \
+                                       
profile,recpriority,category,maxnewest,inactive,maxepisodes, \
+                                       
autoexpire,startoffset,endoffset,recgroup,dupmethod,dupin, \
+                                       station,\
+                                       
seriesid,programid,autocommflag,findday,findtime,findid, \
+                                       
autotranscode,parentid,transcoder,tsdefault,autouserjob1,autouserjob2,autouserjob3,
 \
+                                       autouserjob4,playgroup,prefinput, \
+                                       next_record,last_record,last_delete) 
values \
+                                       ('%s','%d','%d',FROM_UNIXTIME(%d), \
+                                        FROM_UNIXTIME(%d), FROM_UNIXTIME(%d), \
+                                        FROM_UNIXTIME(%d),'',", recordid,
+                                       type, sqlprog[which].chanid,
+                                       (int)sqlprog[which].starttime,
+                                       (int)sqlprog[which].starttime,
+                                       (int)sqlprog[which].endtime,
+                                       (int)sqlprog[which].endtime);
+                               sprintf(query1, " 
,'Default','0','%s','0','0','0','0', '%s', '%s','%s','6','15',", 
sqlprog[which].category,startoffset,endoffset,sqlrecgroups[rgroup].recgroups);
+                               
sprintf(query2,",'%s','%s','1',DAYOFWEEK(FROM_UNIXTIME(%d)),FROM_UNIXTIME(%d),TO_DAYS(FROM_UNIXTIME(%d)),
 \
+                                       '0','0','0','1.00','0','0','0', \
+                                       '0','0','0', \
+                                       '00:00:00','00:00:00','00:00:00')", \
+                                       
sqlprog[which].seriesid,sqlprog[which].programid,(int)sqlprog[which].starttime,(int)sqlprog[which].starttime,(int)sqlprog[which].starttime);
+                               break;
                        default:
                                sprintf(guierrormsg, "No MythTV SQL 
support\nMythTV version: %d\n", cmyth_conn_get_protocol_version(control));
                                gui_error(guierrormsg);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]