diff -Naur mythtv.orig/libs/libmythtv/channelsettings.cpp mythtv/libs/libmythtv/channelsettings.cpp
|
old
|
new
|
|
| 21 | 21 | }; |
| 22 | 22 | }; |
| 23 | 23 | |
| | 24 | class TimeOffset: public LineEditSetting, public CSetting { |
| | 25 | public: |
| | 26 | TimeOffset(const ChannelID& id): |
| | 27 | LineEditSetting(), CSetting(id, "tmoffset") { |
| | 28 | setLabel(QObject::tr("Time Offset")); |
| | 29 | setHelpText(QObject::tr("Offset (in seconds) to apply to the program " |
| | 30 | "guide data in listings. This can be used " |
| | 31 | "when the listings for a particular channel " |
| | 32 | "are in a different time zone. (Works for " |
| | 33 | "DataDirect listings only.)")); |
| | 34 | }; |
| | 35 | }; |
| | 36 | |
| 24 | 37 | class Channum: public LineEditSetting, public CSetting { |
| 25 | 38 | public: |
| 26 | 39 | Channum(const ChannelID& id): |
| … |
… |
|
| 284 | 297 | connect(source,SIGNAL(valueChanged(const QString&)),this,SLOT(sourceChanged(const QString&))); |
| 285 | 298 | #else |
| 286 | 299 | addChild(new XmltvID(id)); |
| | 300 | addChild(new TimeOffset(id)); |
| 287 | 301 | #endif |
| 288 | 302 | }; |
| 289 | 303 | |
diff -Naur mythtv.orig/libs/libmythtv/dbcheck.cpp mythtv/libs/libmythtv/dbcheck.cpp
|
old
|
new
|
|
| 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 = "1121"; |
| | 13 | const QString currentDatabaseVersion = "1122"; |
| 14 | 14 | |
| 15 | 15 | static bool UpdateDBVersionNumber(const QString &newnumber); |
| 16 | 16 | static bool performActualUpdate(const QString updates[], QString version, |
| … |
… |
|
| 241 | 241 | The 'xmltvid' field is used to identify this channel to the listings |
| 242 | 242 | provider. |
| 243 | 243 | |
| | 244 | The 'tmoffset' field is used to apply an offset (in seconds) from the listings |
| | 245 | provided by the provider to a new time in the MythTV program guide database. |
| | 246 | This is very handy when the listings provider has listings which are offset |
| | 247 | by a few hours on individual channels with the rest of them being correct. |
| | 248 | |
| 244 | 249 | The 'recpriority' field is used tell the scheduler from which of two |
| 245 | 250 | otherwise equivalent programs on two different channels should be |
| 246 | 251 | prefered, a higher number means this channel is more preferred. |
| … |
… |
|
| 1980 | 1985 | return false; |
| 1981 | 1986 | } |
| 1982 | 1987 | |
| | 1988 | if (dbver == "1121") |
| | 1989 | { |
| | 1990 | const QString updates[] = { |
| | 1991 | "ALTER TABLE channel ADD COLUMN tmoffset INT NOT NULL default '0';", |
| | 1992 | "" |
| | 1993 | }; |
| | 1994 | |
| | 1995 | if (!performActualUpdate(updates, "1122", dbver)) |
| | 1996 | return false; |
| | 1997 | } |
| | 1998 | |
| 1983 | 1999 | // Drop xvmc_buffer_settings table in 0.20 |
| 1984 | 2000 | // Drop dvb_dmx_buf_size and dvb_pkt_buf_size columns of channel in 0.20 |
| 1985 | 2001 | |
diff -Naur mythtv.orig/programs/mythfilldatabase/filldata.cpp mythtv/programs/mythfilldatabase/filldata.cpp
|
old
|
new
|
|
| 987 | 987 | "hdtv, closecaptioned, partnumber, parttotal, seriesid, " |
| 988 | 988 | "originalairdate, colorcode, syndicatedepisodenumber, " |
| 989 | 989 | "programid) " |
| 990 | | "SELECT chanid, starttime, endtime, " |
| | 990 | "SELECT chanid," |
| | 991 | "DATE_ADD(starttime, INTERVAL (SELECT tmoffset from channel where dd_v_program.chanid = channel.chanid) SECOND), " |
| | 992 | "DATE_ADD(endtime, INTERVAL (SELECT tmoffset from channel where dd_v_program.chanid = channel.chanid) SECOND), " |
| 991 | 993 | "title, subtitle, description, " |
| 992 | 994 | "showtype, dd_genre.class, category_type, " |
| 993 | 995 | "airdate, stars, previouslyshown, stereo, subtitled, " |