Ticket #216: comhem-eit.patch
File comhem-eit.patch, 2.3 KB (added by , 19 years ago) |
---|
-
libs/libmythtv/siparser.cpp
3059 3059 //is this event on a channel we shoud look for a subtitle? 3060 3060 if(PrivateTypes.ParseSubtitleServiceIDs.contains(event.ServiceID)) 3061 3061 { 3062 int pos=event.Description.find( ". ");3063 if(pos!=-1 && pos<= 40&& (event.Description.length()-(pos+2))>0 )3062 int pos=event.Description.find(QRegExp("[.\?] ")); 3063 if(pos!=-1 && pos<=55 && (event.Description.length()-(pos+2))>0 ) 3064 3064 { 3065 event.Event_Subtitle=event.Description.left(pos );3065 event.Event_Subtitle=event.Description.left(pos+(event.Description[pos]=='?' ? 1 : 0)); 3066 3066 event.Description=event.Description.mid(pos+2); 3067 3067 } 3068 3068 } -
libs/libmythtv/dbcheck.cpp
10 10 #include "mythdbcon.h" 11 11 12 12 /// This is the DB schema version expected by the running MythTV instance. 13 const QString currentDatabaseVersion = "109 0";13 const QString currentDatabaseVersion = "1091"; 14 14 15 15 static bool UpdateDBVersionNumber(const QString &newnumber); 16 16 static bool performActualUpdate(const QString updates[], QString version, … … 1985 1985 "ALTER TABLE capturecard ADD COLUMN dbox2_httpport INT UNSIGNED NOT NULL DEFAULT 80;", 1986 1986 "ALTER TABLE capturecard ADD COLUMN dbox2_host varchar(32) NULL;", 1987 1987 "" 1988 1988 }; 1989 1989 1990 1990 if (!performActualUpdate(updates, "1090", dbver)) 1991 1991 return false; 1992 1992 } 1993 1993 1994 if (dbver == "1090") 1995 { 1996 const QString updates[] = { 1997 "DELETE FROM dtv_privatetypes WHERE sitype='dvb' AND networkid=40999 AND private_type='parse_subtitle_list';", 1998 "INSERT INTO dtv_privatetypes (sitype,networkid,private_type,private_value) VALUES ('dvb',40999,'parse_subtitle_list','1070,1308,1041,1306,1307,1030,1016,1131,1068,1069');", 1999 "" 2000 }; 2001 if (!performActualUpdate(updates, "1091", dbver)) 2002 return false; 2003 } 2004 1994 2005 // Drop xvmc_buffer_settings at some point 1995 2006 // Drop dead DVB tables eventually, too 1996 2007