diff -Naur mythtv-unpatched/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-unpatched/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 = "1128"; |
| 13 | const QString currentDatabaseVersion = "1129"; |
14 | 14 | |
15 | 15 | static bool UpdateDBVersionNumber(const QString &newnumber); |
16 | 16 | static bool performActualUpdate(const QString updates[], QString version, |
… |
… |
|
240 | 240 | The 'xmltvid' field is used to identify this channel to the listings |
241 | 241 | provider. |
242 | 242 | |
| 243 | The 'tmoffset' field is used to apply an offset (in seconds) from the listings |
| 244 | provided by the provider to a new time in the MythTV program guide database. |
| 245 | This is very handy when the listings provider has listings which are offset |
| 246 | by a few hours on individual channels with the rest of them being correct. |
| 247 | |
243 | 248 | The 'recpriority' field is used tell the scheduler from which of two |
244 | 249 | otherwise equivalent programs on two different channels should be |
245 | 250 | prefered, a higher number means this channel is more preferred. |
… |
… |
|
2057 | 2062 | if (!performActualUpdate(updates, "1128", dbver)) |
2058 | 2063 | return false; |
2059 | 2064 | } |
2060 | | |
| 2065 | if (dbver == "1128") |
| 2066 | { |
| 2067 | const QString updates[] = { |
| 2068 | "ALTER TABLE channel ADD COLUMN tmoffset INT NOT NULL default '0';", |
| 2069 | "" |
| 2070 | }; |
| 2071 | if (!performActualUpdate(updates, "1129", dbver)) |
| 2072 | return false; |
| 2073 | } |
2061 | 2074 | //"ALTER TABLE capturecard DROP COLUMN dvb_recordts;" in 0.21 |
2062 | 2075 | //"ALTER TABLE capturecard DROP COLUMN dvb_hw_decoder;" in 0.21 |
2063 | 2076 | |
diff -Naur mythtv-unpatched/programs/mythfilldatabase/filldata.cpp mythtv/programs/mythfilldatabase/filldata.cpp
old
|
new
|
|
988 | 988 | "hdtv, closecaptioned, partnumber, parttotal, seriesid, " |
989 | 989 | "originalairdate, colorcode, syndicatedepisodenumber, " |
990 | 990 | "programid) " |
991 | | "SELECT chanid, starttime, endtime, " |
| 991 | "SELECT chanid," |
| 992 | "DATE_ADD(starttime, INTERVAL (SELECT tmoffset from channel where dd_v_program.chanid = channel.chanid) SECOND), " |
| 993 | "DATE_ADD(endtime, INTERVAL (SELECT tmoffset from channel where dd_v_program.chanid = channel.chanid) SECOND), " |
992 | 994 | "title, subtitle, description, " |
993 | 995 | "showtype, dd_genre.class, category_type, " |
994 | 996 | "airdate, stars, previouslyshown, stereo, subtitled, " |