Mailing List Archive

How to define channels via XML file
Hello,

I'd like some help about entering the channels into
the database via the XML TV file.

After looking at the code of mythfilldatabase, I have
the impression that the following is imposed when
entering channels via mythfilldatabase and XML TV
files:
1. "xmltvid" need to be the same string as "callsign"
2. the "chanid" cannot be given in the file.

Is this real ? If so, I cannot use XML TV to create my
channels, esp. because I use "chanid" to set the order
of the channels, so I need to set this column.

So until now I have entered the channels via a SQL
file, containing lines like:
INSERT INTO channel
(chanid,name,callsign,channum,finetune,icon,xmltvid,sourceid)
VALUES(4,'Canal
+','Canal+',63,0,'/root/.mythtv/channels/canalplus.gif','Canal+France',1);

But this is not a perfect solution, as it brings some
other problems:
* the sourceid, as well as the path of the images, may
change on some installations,
* what if the structure of the table changes ?

So I'm wondering if there is a better way of setting
the channel ids.

Thanks,
Ben.

___________________________________________________________
Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français !
Yahoo! Mail : http://fr.mail.yahoo.com