[mythtv] [PATCH] Swedish Terrestial Network Channel Numbers
Jyrki Niskala
jyrki.n at telia.com
Sun Feb 6 22:09:41 UTC 2005
Hi there
My first contribute to open source;-)
This one gives channel numbers on the swedish terrestial network..
/ Jyrki
-------------- next part --------------
Index: libs/libmythtv/dbcheck.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/dbcheck.cpp,v
retrieving revision 1.81
diff -u -r1.81 dbcheck.cpp
--- libs/libmythtv/dbcheck.cpp 6 Feb 2005 08:46:49 -0000 1.81
+++ libs/libmythtv/dbcheck.cpp 6 Feb 2005 21:59:20 -0000
@@ -8,7 +8,7 @@
#include "mythcontext.h"
-const QString currentDatabaseVersion = "1068";
+const QString currentDatabaseVersion = "1069";
static bool UpdateDBVersionNumber(const QString &newnumber);
static bool performActualUpdate(const QString updates[], QString version,
@@ -1367,6 +1367,16 @@
return false;
}
+ if (dbver == "1068")
+ {
+ const QString updates[] = {
+"INSERT INTO dtv_privatetypes (sitype,networkid,private_type,private_value) VALUES ('dvb',8945,'channel_numbers','241');",
+""
+};
+ if (!performActualUpdate(updates, "1069", dbver))
+ return false;
+ }
+
return true;
}
-------------- next part --------------
Index: libs/libmythtv/siparser.cpp
===================================================================
RCS file: /var/lib/mythcvs/mythtv/libs/libmythtv/siparser.cpp,v
retrieving revision 1.5
diff -u -r1.5 siparser.cpp
--- libs/libmythtv/siparser.cpp 6 Feb 2005 18:15:30 -0000 1.5
+++ libs/libmythtv/siparser.cpp 6 Feb 2005 21:59:44 -0000
@@ -1137,6 +1137,10 @@
ParseDescriptorService(&buffer[pos + 5 + lentotal],
buffer[pos + 6 + lentotal], s);
break;
+ case 0xf1:
+ if(PrivateTypes.ChannelNumbers == 0xf1) // Swedish terrestial network channel numbers
+ s.ChanNum = buffer[pos + 7 + lentotal]|buffer[pos + 8 + lentotal];
+ break;
default:
ProcessUnknownDescriptor(&buffer[pos + 5 + lentotal],
buffer[pos + 6 + lentotal]);
More information about the mythtv-dev
mailing list