Ticket #216: comhem-eit.patch

File comhem-eit.patch, 2.3 KB (added by torbjorn.jansson@…, 19 years ago)

the patch

  • libs/libmythtv/siparser.cpp

     
    30593059        //is this event on a channel we shoud look for a subtitle?
    30603060        if(PrivateTypes.ParseSubtitleServiceIDs.contains(event.ServiceID))
    30613061        {
    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 )
    30643064            {
    3065                 event.Event_Subtitle=event.Description.left(pos);
     3065                event.Event_Subtitle=event.Description.left(pos+(event.Description[pos]=='?' ? 1 : 0));
    30663066                event.Description=event.Description.mid(pos+2);
    30673067            }
    30683068        }
  • libs/libmythtv/dbcheck.cpp

     
    1010#include "mythdbcon.h"
    1111
    1212/// This is the DB schema version expected by the running MythTV instance.
    13 const QString currentDatabaseVersion = "1090";
     13const QString currentDatabaseVersion = "1091";
    1414
    1515static bool UpdateDBVersionNumber(const QString &newnumber);
    1616static bool performActualUpdate(const QString updates[], QString version,
     
    19851985            "ALTER TABLE capturecard ADD COLUMN dbox2_httpport INT UNSIGNED NOT NULL DEFAULT 80;",
    19861986            "ALTER TABLE capturecard ADD COLUMN dbox2_host varchar(32) NULL;",
    19871987            ""
    1988         };
     1988        };
    19891989
    19901990        if (!performActualUpdate(updates, "1090", dbver))
    19911991            return false;
    19921992    }
    19931993
     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
    19942005// Drop xvmc_buffer_settings at some point
    19952006// Drop dead DVB tables eventually, too   
    19962007