Format of the file xmltv-A_0001.xml

Subscribe to Format of the file xmltv-A_0001.xml 13 post(s), 3 voice(s)

 
Avatar jvl 7 post(s)

Hi,

Does someone know the tags used in the xml file in order to have the background colors on each program of the EPG (like yellow for news, blue for sport, red for movies, etc.)

What are the other tags which are used ? <actor>, <date>, <actor>, <programme start="stop=">

Thanks

JVL

 
Avatar Guillaume Bo... Administrator 203 post(s)

The following tags & attributes are used somehow by EEP from XMLTV files:
programme start, programme stop, programme channel, title, sub-title, episode-num, desc, category

The category tag is used to send a ‘genre’ to EEP. Here’s the genres I had in my original trace of TitanTV data; I’m not sure if all of those give a different color, but some of them should.

Action
Children
Comedy
Documentary
Drama
Educational
Game
How-To
Music
Nature
News
Other
Religious
Sci-Fi
Soap
Special
Sports
Talk
Travel

 
Avatar jvl 7 post(s)

Great, thanks

Do you know any good freeware (over mac osx) to edit an xml file (the xmltv file) because I have to merge two channels together in one new channel and I have to add 11 or 12hours to some channels (I leave in Tahiti and the program is from France : TPS).

 
Avatar Guillaume Bo... Administrator 203 post(s)

For the time difference, there’s an option in the config.inc.php file:
$config[‘tz_correction’] = +11;

Uncomment the line and test with +11 or +12, -11 or -12 to find the correction you need.

As for a XML editor, I’m always using a text editor (TextMate) to edit XML files myself.

 
Avatar jvl 7 post(s)

The correction is for some channels only, not all of them.
I’ll look at TextMate

 
Avatar mingus 4 post(s)

You can also automate this with a combination of:

sed (to rename the channel names within your xml files)

e.g. sed 's/"old.channel.fr"/"new.channel.fr"/' <infile>outfile.xml
do this for all elements/files that should change

tv_cat to merge the files

tv_cat --output mergedfile.xml infile1.xml infile2.xml

tv_sort to sort the data and strip redundant channel info

tv_sort --output sortedfile.xml infile.xml

Combine these in a script with tv_grab_XX and you have a full automated procedure

 
Avatar jvl 7 post(s)

I didn’t know sed, looks quite powerfull.
My problem still remains as I have to do two things :
1. Channelfinal is a mix of Channel1 from 00h00 to 18h00 and Channel2 from 18h00 to 00h00
2. ChannelA, ChannelB do +12hours, ChannelC leave the time as it is

 
Avatar Guillaume Bo... Administrator 203 post(s)

If you can provide both input and expected results, and give concrete examples of both 1 and 2 above from the provided data, I could probably make something quick in EEP that would do what you want.

 
Avatar jvl 7 post(s)

Exemple, if I use tv_grab_fr with a .conf file with the following channels :
channel 80 mangas;http://static.guidetele.com/c_img/chaine/mangas…
channel 8 rtl9;http://static.guidetele.com/c_img/chaine/rtl9.gif
channel 118 lci;http://static.guidetele.com/c_img/chaine/lci.gif
channel 140 cinecinemaclassic;http://static.guidetele.com/c_img/chaine/classi…

I would like to have :
- new time of channel 118 = time of channel 118 – 12 hours
- new time of channel 140 = time of channel 140 (not modified)
- new channel 880 = mix of channel 8 and channel 80
where
I keep the programs from channel 8 between 12h00 and 06h00 and I keep the programs from channel 88 from 06h00 to 12h00

I’ll detail you this more in the week-end if necessary, thanks for your help !

 
Avatar Guillaume Bo... Administrator 203 post(s)

Overwrite those two files in your EEP installation with those new versions:
http://eyetv-epg-proxy.googlecode.com/svn/trunk…
http://eyetv-epg-proxy.googlecode.com/svn/trunk…

And add the following at the end of config.inc.php, before the ?> line:

# Same as above, but only applies to one channel (XMLTV only).
# Example: To affect only this channel: <channel id="3"> <display-name>CKMI</display-name> </channel>, use this:
$config['channel_tz_correction']['118'] = -3;

# Merge two channels in one (XMLTV only). The source ids must be channels ids from your XMLTV file.
# The target id doesn't need to exist in your XMLTV file, but should correspond to a valid channel number in your EyeTV.
# 'from' and 'to' are times (24h format), prior to any tz_correction (i.e. as shown in the XMLTV file).
$config['channels_merge'][] = array('source' => array(
                                                                               array('id' => '8', 'from' => '0h00', 'to' => '18h00'),
                                                                               array('id' => '80', 'from' => '18h00', 'to' => '0h00')),
                                                                       'target' => array('id' => '880', 'name' => 'rtl9 / mangas'));

Good luck.

 
Avatar jvl 7 post(s)

Hi Guillaume,

Just to inform you that I haven’t managed to make it work yet. It seems that there is no tz correction by channel.

1. Just to be sure when I use a new XML file and/or modify the config.inc.php file, I rename it as A-0003 in the config.inc.php, I delete the old epg.db, I put the new A-0003 in cache and I erase from the cache the old A-0002 files, is that all I have to do to or is there something else to do to be sure not to use files in cache ?

2. It seems that the content (title) of the epg doesn’t appear on the channel in the blue part when I zap channels is that normal ?

 
Avatar Guillaume Bo... Administrator 203 post(s)

1. Set cacheDays to 0. This will completely disable the cache.

2. EyeTV doesn’t show the episode title in that blue bar, only the show ‘main’ title.

 
Avatar jvl 7 post(s)

When I do what is described in the previous post (1.) and set cacheDays to 0, I have noticed that I have errors in the /var/http/error_log and that the file which makes the error is concerning a previous file, for instance in the tail error_log, I have the following stuff whereas in my conf file it is the number A_0010 and in the cache also A_0010. I have the same error if I use either “old” functions.inc or the new one you have posted. Any explanation ?

Thu Feb 21 23:18:24 2008 PHP Notice: Undefined index: A_00009 in /Library/WebServer/Documents/eyetv-epg-proxy/dataservice.asmx/RequestProgramData.php on line 20
Thu Feb 21 23:18:24 2008 PHP Notice: Undefined index: A_00009 in /Library/WebServer/Documents/eyetv-epg-proxy/dataservice.asmx/RequestProgramData.php on line 22
Thu Feb 21 23:18:24 2008 PHP Notice: Undefined variable: numStations in /Library/WebServer/Documents/eyetv-epg-proxy/dataservice.asmx/RequestProgramData.php on line 32
Thu Feb 21 23:18:24 2008 PHP Notice: Undefined variable: numSchedules in /Library/WebServer/Documents/eyetv-epg-proxy/dataservice.asmx/RequestProgramData.php on line 33
Thu Feb 21 23:18:24 2008 PHP Notice: Undefined variable: numPrograms in /Library/WebServer/Documents/eyetv-epg-proxy/dataservice.asmx/RequestProgramData.php on line 34
Thu Feb 21 23:18:24 2008 PHP Notice: Undefined variable: stationsXML in /Library/WebServer/Documents/eyetv-epg-proxy/dataservice.asmx/RequestProgramData.php on line 35
Thu Feb 21 23:18:24 2008 PHP Notice: Undefined variable: programsXML in /Library/WebServer/Documents/eyetv-epg-proxy/dataservice.asmx/RequestProgramData.php on line 36
Thu Feb 21 23:18:24 2008 PHP Notice: Undefined variable: schedulesXML in /Library/WebServer/Documents/eyetv-epg-proxy/dataservice.asmx/RequestProgramData.php on line 37

2. The show which is in the <title> </title> doesn’t apear in the blue bar, here is a few lines in my xmltv file <channel id="C1.telepoche.com"> <display-name>tf1</display-name> <icon src="http://static.guidetele.com/c_img/chaine/tf1.gif" /> </channel> <programme stop="20080221061500 +0100" start="20080221055000 +0100" channel="C1.telepoche.com"> <title>Wounch-Pounch – Dans la peau d’un autre</title> <category lang="fr">emission jeunesse</category> </programme>