![]() |
|
SageTV EPG Service Discussion related to the SageTV EPG Service used within SageTV. Questions about service area coverage, channel lineups, EPG listings, XMLTV, or anything else related to the service or programming guide data for SageTV should be posted here. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
Channels numbers in epgdata.xml
Hello !
As I live in Switzerland, I try to configure my Sage TV to import data from the epgdata.xml file with the latest xmltv plugin for Sage TV. It seems to work not too bad because I can retrieve all data from the xml file and I have the complete TV guide. The problem is that with xmltv, I grabbed the channels and programms using "xmltv tv_grab_fr..." (== for France), because there is no "tv_grab_ch" option for Switzerland. So, when imported into Sage TV, the channels do not match at all : for exemple TV France should be on channel 61 but it is on channel 44 according to epgdata.xml. So...is there a mean of changing channel numbers in the epgdata.xml file ? For exemple, here is the beginning of my epgdata.xml : Code:
<tv source-info-url="http://telepoche.guidetele.com/" source-data-url="http://telepoche.guidetele.com/" generator-info-name="XMLTV" generator-info-url="http://membled.com/work/apps/xmltv/"> <channel id="C1.telepoche.com"> <display-name>tf1</display-name> <icon src="http://telepoche.guidetele.com/c_img/chaine/tf1.gif" /> </channel> Any explanation would be welcome... Thanks. |
#2
|
|||
|
|||
In SageTV, you can go to each channel in turn and remap it in Channel setup.
Alternatively, how's your XSL? You could write an XSL transform to kick out the same XML but with different channel numbers. |
#3
|
|||
|
|||
I know it is possible to remap channel numbers directly in SageTV, but I found it a bit boring. I hope at least that I won't have to remap each time I load a new epgdata.xml !?
For the xsl suggestion, I don't understand what you mean... |
#4
|
|||
|
|||
Quote:
Quote:
![]() XSL is a way of taking one form of XML and changing it into another form of XML - so you would have your original epgdata.xml file, then use a channel-number-change.xsl file to transform it into a new epgdata.xml file using an XSL transform engine (there are loads of them available). But you'd need to learn how to write XSL files and run them against XML, which is probably harder work than just remapping all the Channels in SageTV. |
#5
|
|||
|
|||
I think I would be able to write such a xsl file, but it would be completely useless as the xmltv plugin for sage does not manage the channel number. I would have to adapt the plugin as well...
|
#6
|
|||
|
|||
If you know the number, and you can write XSL, you should be able to do it... Alan Birtles' version of XMLTV for the UK kicks out XML with the correct channel numbers and Sage picks them up. I'll look at the XML when I get home and let you know what attribute you need to add via XSL.
|
#7
|
||||
|
||||
The French XMLTV grabber does not include channel numbers in the XML, so remapping them is a necessary part of first-time Sage setup.
Once you have remapped the channel numbers once in Sage, they are re-mapped forever -- there is no need to have the channel numbers in the XML for every import
__________________
Check out my enhancements for Sage in the Sage Customisations and Sageplugins Wiki ![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|