|
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 |
#21
|
||||
|
||||
Just ran the script to create a new channel lineup and added it to the importer. Took a look in the channel editor and sure enough all my channels are numbered and callsigns are in place.... I could have wept with joy!
Just finished running an import and everything looks perfect. This script literally saves me hours of editing I had to do on initial setup or whenever I add / change the lineup. There should be a second registration from me for 10 euros waiting for you in PayPal Stephane, so walk down to your local bar and order a glass of something good for xmas =) |
#22
|
||||
|
||||
Quote:
Technazz |
#23
|
||||
|
||||
Quote:
|
#24
|
|||
|
|||
What about when you do a re-scan of channels in Mytheatre??
I typically do a complete delete and re-scan because otherwise I end up with some duplicate channels that take quite a while to go through and find manually. If I do that will I have to run the script and import again?? |
#25
|
||||
|
||||
Quote:
|
#26
|
|||
|
|||
Quote:
Quote:
Last edited by grooves12; 12-19-2006 at 06:09 PM. |
#27
|
||||
|
||||
Quote:
I saw that you asked for this in the Mytheatre forums as well and I think thats the right place to look as the only way to get what you're after is on the DVB Parser / exporter side. |
#28
|
||||
|
||||
Hello,
Quote:
Regards, Stéphane. |
#29
|
||||
|
||||
I;ve tried this script and I When I import then go to the edit the channels I get No Channels in xml file. Ive attached the script output.
THanks Technazz |
#30
|
||||
|
||||
Hi,
Quote:
Especially : the script is not aware of the Importer at all, it's only job is take xmltv files as input and outputs a channels.xml file. You can then use this channels.xml file to replace the one produced by the Importer (should be in the importer installation directory), either by replacing it or giving the right path directly in the script. But : this will not prevent the Importer to still create / modify the channels.xml. So if you don't see anything in the Importer Channel Editor, this is because the Importer delete the channels it cannot found in your XMLTV files. And that means that the script and the Importer are not seeing the same XMLTV files. Regards, Stéphane. |
#31
|
||||
|
||||
Hi,
Quote:
Extract the content of the zip file in a folder of your choice, then edit the constantes.inc file in Notepad and change the sEPGFile to the path to your XMLTV files. Then launch the script FixXMLTV.wsf, it could take some time to execute due to the size of your XMLTV file. Regards, Stéphane. Last edited by StephaneM; 04-13-2007 at 05:54 PM. |
#32
|
|||
|
|||
Quote:
I am running into the problem where I am getting an error because of the xmltv.dtd file not being found, similar to the one seen by xred above. I tried copying one I found on my system from another program... but it gives me another error saying it was expecting different information. It starts processing the file if I remove that line from the .xml file, but that sort of defeats the purpose and point of scripting, because I would like to add a task that modifies the xml data immediately after downloading it. What are the ramifications of removing the line that points to the xmltv.dtd file in the .xml file?? Does it hurt the import process at all?? If not, why is the system looking for it and crying?? Last edited by grooves12; 12-22-2006 at 02:50 AM. |
#33
|
||||
|
||||
Quote:
Quote:
When a XML file does have a DTD, the software that load the XML file should validate the XML file against this DTD. If the XML document validate then the software can safely assume that it will find what it expect, and if it fails the software must abort processing the file. I guess that the XML parser used by the script is validating against the DTD by default whereas in the Importer, I'm not validating the document (though the DTD is needed to load the XML file). If I remember correctly the XML parser in the script will not tolerate elements added into the XMLTV file that are not described in the DTD... Anyway, here is a version that does not validate the XMLTV file against the DTD. All you have to do is download the updated script or add : oEPGFile.validateOnParse = False just after the line Set oEPGFile = WScript.CreateObject("Msxml2.DOMDocument") Regards, Stéphane. Last edited by StephaneM; 12-23-2006 at 10:01 AM. |
#34
|
||||
|
||||
Quote:
Thanks its working perfectly now. Good work! Technazz |
#35
|
|||
|
|||
Quote:
Thanks, is it possible to also modify the channels.xml creation script so that is does not validate against the xmltv.dtd?? I am using two different xmltv files netiher of which get a .dtd file created for them, and the one that comes with Sage does not work properly for them. Also, I am still a little confused about setting up Sage and this importer with this script. I have one tuner that uses Two different .xml files, and would like to use this script to set the channel numbers up. Can someone give a quick step by step on getting this started?? I am trying to move from Demedius' importer. Last edited by grooves12; 12-22-2006 at 08:21 PM. |
#36
|
||||
|
||||
Quote:
Quote:
The crucial step is the creation of lineup and channels edition. You'll have to create the lineups you need. I always suggest to create a lineup by feed type, for instance : Satellite Lineup / Cable Lineup etc... When you create a lineup you'll notice that they are numbered (you'll need this number to use the script afterward). Right after lineup creation, go to the "channels" tab, the Importer will list all channels it can find in all your XMLTV files. There you have two choices : * either edit the channels list : give a name, call-sign, channel number and choose the lineup for each channels. The channel number is what SageTV will use to tune the channels. * either close the channel editor (by clicking on the "Ok" button) to validate the change even though you do not have changed anything and use the scripts afterward to create the "channels.xml" file for you. The script is then supposed to be run only when your lineup change (so you use it for the initial setup and each time you have new channels or channels number are changing). Look at the initial post (#16) for the script it explains what you need to change in the constantes.inc file for it to be working. Basically you have to tell the script where to find your XMLTV files (all of them of course), what is the lineup number where to put the channels of each XMLTV files and where to save the channels.xml file. Also remember, this is NOT a general purpose script. It is only intended to avoid editing your channels manually if you are in the same situations as Xred. But the script will not allows all the things you can do with the XMLTV Importer channel editor. Note: you'll save you a great deal of time if you can reduce dramatically the size of your XMLTV file. For instance to reduce the overal import time on your first setup it will be smart to use a one day only XMLTV file (the XMLTV file you send me was 59 MB, if it is this large because there is many channels, many days and many programs, the importer will need at least one hour to process all this data, if you can reduce the size for you first setup, it will be easier for you to verify that all is working in a matter of minutes). Regards, Stéphane. |
#37
|
|||
|
|||
I got this script up and running, and I must say this works GREAT!!! Should be an option in the standard application for autonumbering channels. And for those of us running Mytheatre data as a subset of Zap2it data, this script is AMAZING. Cuts setup time by about 90%
|
#38
|
||||
|
||||
StephaneM,
It's been a while, but the script you made for modifying my Mytheatre data has improved the functionality of your importer immensely. Previously I was getting multiple of the same episodes recorded because some had title information and some did not. Now it is finding the same episode from the different sources and marking them as the same. But, there are still some minor problems. Those PPV programs that had (All day) in the title also have extra information, and are the ONE other program type that has a carriage return in the description. So, it is putting this extra info as an episode title, and I think that is somehow differentiating the data and it is thinking mulyiplr airings of the same movie are different movies. This: Quote:
Quote:
I THINK all of the descriptions with this problem are also ones that have "Family:" preceding the title and/or the "(All Day)","(All Day, DD)", or "(All Day, DD, LBX)" after the title. So, maybe we can just make the script delete the info that is being shifted to the episode title area, if it also has one of those characteristics in the title. Another MINOR problem is that for episodes that have no description the " -" is still remaining. So, this is that the data looks like after the script is ran: Quote:
And... similarly, episodes with no episode title, the " -" still remains. Quote:
Last edited by grooves12; 01-13-2007 at 01:31 PM. |
#39
|
|||
|
|||
I just had to do a complete reinstall... and now I can not get this script to work. It is properly creating the channels.xml and it is placed in the importer directory, but the importer is not using it. When I click "edit channels" in the importer the channels are not being read as they are in the channels.xml.
|
#40
|
||||
|
||||
Hello,
Quote:
So you need to run the channel editor of the Importer first, then modify the script constants to match your configuration. If the channels.xml file is getting written with the right lineup numbers then I don't see any reasons why it shouldn't be used by the Importer. Note : I updated the FixXMLTV.zip archive in this thread for your "movies" problem (hower I will not fix your "remaining dash" problem as it will mostely screw everything else in your XMLTV file). Regards, Stéphane. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|