|
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
|
||||
|
||||
MyTheatre and New XMLTV Import Tool
Anyone using the new XMLTV Import tool by StephaneM importing MyTheatre guide data?
I am interested to find out how well it works in identifying repeat airings of the same show. |
#2
|
||||
|
||||
Quote:
* title * episode title or description or air date (your choice) The Importer will create an ID for a series of shows, that is all shows that share the same title will be part of the same serie. Then it will create a # ID for a show in the serie if the ep. title / description / air date is not the same as another one. It will also "remembers" all assigned IDs, so if Ep 1 of a series was aired last year and is being imported again, the Importer will assign it the same ID (this of course doesn't work if you chosse the air date as a distinction method and no episode title is given in your XMLTV file). Also it will tell you that the show is a repeat. The whole process works if you have more than one XMLTV file. Regards, Stéphane. |
#3
|
||||
|
||||
Thanks for taking the time to explain. I had a pretty good idea of how it worked from your thread. What I really wanted to know was how "well" it worked.
Please do me a favor and don't mis-quote me. Not a big deal, but you could have just said, "I know you wanted to know how "well" it worked, but in case you were wondering, this is "how" it works." Instead you changed my wording which aint cool. |
#4
|
||||
|
||||
Quote:
Now, I really don't think anybody will tell you "how well it works", that's why I replied to your post with "how it works". You should be able with this explanation to respond to your first question : * you know how are your MyTheater XMLTV data * you know how works the Importer you can now deduce how well it will work. You can also try for yourself. What I would do is : make a backup of your SageTV installation and try the new Importer and see if it handle the show as you want it to (depending on your data you'll have to choose between the "air date" or "description" identity detection method, usually I would recommend the "description" method). And if it doesn't work as you want it you can safely go back to your backup (the backup guarantee that the operation will not mess your historical data). Then you can always come to me to see if there is a solution or not. Currently one thing I can try to improve is how to reduce the use of the "EPxxxxxxx" IDs. Those are dedicated to series usually, and the Importer will assign this type of IDs for any show that has more than one episode (wether it's right or not, and except for movies if your data does have a "movie" category). It would be better if the Importer use only "SHxxxxxx" IDs for shows that occasionally do have more that one episode (for instance a "news" show with one special edition per week). Handling this kind of situation would require extensive use of categories for shows and exception list and I'm considering if it's not too difficult to setup for users (my requirements for the Importer is not too have billions of options, it should work with no questionning / difficult set up). I will surely begin with a way to assign new categories for shows and I will see then. Regards, Stéphane. |
#5
|
||||
|
||||
OK well since you sound like you are willing to consider some changes I am willing to give your software a shot.
One thing to consider right off the bat is that both Zap2it and MyTheatre data provide star-ratings for movies so if you are looking for an easy way to identify a movie and assign it the appropriate category as well as the appropriate EP/SH ID classification you might have your importer check for the presence of the star-rating element. Also, is it possible to have your importer derive the channel number from the xml file? The data is there, it's just a matter of extracting it. Alternatively I can have a script do it, but there have been a couple of other importers that could do it without my script. Last edited by rsagetv99; 09-07-2006 at 03:39 PM. |
#6
|
||||
|
||||
Quote:
So I must think about it some time (I was a BTV user and still need more than one year of SageTV usage to fully tweak the beast with data that are available to me : that is French TV data) To make it short, the general issue is : I know (as a human being) some facts about TV shows but I can't expect an algorithm to know it about unless I tell him about it (manually). I was thinking about a simple way to do this : be able to go in the Importer and lookup up for a particular show and then choosing to "correct" what the Importer think about the show in the first place. Something like : this show is a series with known episodes / this show is a series but no episode is known / All "Friday" airing are "New" (all following are repeats of this one) etc... Quote:
Regards, Stéphane. |
#7
|
||||
|
||||
Quote:
There has to be a better way to do this.... I've previously asked if the channel editor could just automatically "zero out" blank channels or have the importer ignore any channel with no number assigned, but I don't think either of those are implemented. |
#8
|
||||
|
||||
Quote:
Regards, Stéphane. |
#9
|
||||
|
||||
Quote:
Stephane, is there any way you would consider taking all the channels that are automatically "zeroed out" (channels with no number as suggested above) and automatically assigning them to their own default lineup.. lets say lineup #9 and and name it something like "unused channels". Then when the importer runs it would know NOT to process lineup #9? This would make junk collection after editing a LOT easier and the import itself run a lot faster for users with lots of junk channels. I'm willing to pay another registration fee to see this feature incorporated (yes I hate the editing sessions that much!). |
#10
|
||||
|
||||
Quote:
Regards, Stéphane. |
#11
|
|||
|
|||
Quote:
|
#12
|
||||
|
||||
Hello,
Quote:
The main advantage is that it's the quickest DOM parser I know of. Tell me what you exactly want to do and I'll give you a basic workable script (you'll be able to customize it). Regards, Stéphane. |
#13
|
||||
|
||||
Doesn't look like theres any scripts imminent so I'm starting up a bounty!
I'll put up $10 USD for anyone that can create a North American user script for Stephanes XMLTV importer that automatically; - Extracts the channel number (first set of digits) from the "Name" column and automatically puts it in the "Number" column. - Extracts the call sign (second set of characters) from the "Name" column and automatically inserts it in the "Call Sign" column. - Lets you select which set of "XMLTV ID" you would like perform the above two operations on. To clarify, if I have two source XML files (in my case one from Zap2it, one from MyTheatre) I would like to be able select which set of XMLTV ID's to run the operations against. I'm sure I can't be the only user who has had to endure marathon sessions in the channel editor after I rescan the satellite transponders, or channels are added / deleted from the lineups etc etc |
#14
|
||||
|
||||
Quote:
Quote:
I will create your script without problems : I only need to understant what you want to do. For now I see your need as : * load channels from the Zap2it XMLTV and create corresponding channels for the Importer assigned to a specific lineup (all channels?) * load channels from the MyTheatre XMLTV and create corresponding channels for the Importer assigned to another lineup. Ignoring some channels (which ones?) Also do you create duplicate channels in the Importer or not ? I suppose you will not need to run this script for every Import, just once in a while when your lineup is changing? Regards, Stéphane. |
#15
|
||||
|
||||
Quote:
You do have a point that running it against the MyTheatre source would generate a large amount of duplicates, but I am OK with this as going through the channel editor and simply deleting the whole channel number field takes far far less time than it does to manually type in the channel number and delete the channel number digits from the call sign field. It would be nice if it was possible to have a method of easily, graphically selecting which channels to run against within each source file, but for the sake of simplicity (I only put up $10 after all!) I didn't request it. Quote:
Run extraction against MyTheatre.xml for all channels it contains. (e.g 1-1000) Run extraction against Zap2it.xml for all channels it contains. (e.g. 1-400, 700-800). Since Zap2it was run second (or has a higher priority) any channels it has that overlap Mytheatre would overwrite the MyTheatre channel #. Quote:
|
#16
|
||||
|
||||
Hello,
Quote:
Now open the constantes.inc file in Notepad and customize it : * XMLTV files / Const sEPGFiles = "epg.xml;epg.xml" : here you'll have to type the full path to your XMLTV files. Separate each of your XMLTV files by a semi colon * Lineup Numbers / Const sLineupNumbers = "1;2" : here you'll have to type the lineup where to put the channels found in each of your XMLTV files. You must have a lineup number for each XMLTV file, even if it is the same (so for instance "1;1" is Ok) * Destination Lineup / Const sFinalLineup = "channels.xml" : here you'll have to type the full path to the channels.xml file that Importer is using (at first leave it without a path : it will be saved in the folder where you put the wsf and inc files, this way you'll be able to verify that the lineup is Ok). When all is customized, just double click on the wsf file and it will run the script and the channels.xml file will be created. What it should do is : * Create a channel for each channel found in the XMLTV files (extracting name / number) and avoiding duplicate channel number per lineup. * So in your case, you should list Zap2it first (in the sEPGFiles), as there is no overwrite if a duplicate channel is found (the script simply ignore the duplicate) NOTE : Do not open the XMLTV Importer channel editor as it will modify the created lineup by adding the channels that were skipped by the script (after all no at big deal => with no channel number they will be skipped during the Import, but it will be cleaner that way). Regards, Stéphane. Last edited by StephaneM; 12-23-2006 at 09:58 AM. |
#17
|
||||
|
||||
Quote:
'XMLTV Files Const sEPGFiles = "dishepg.xml;mtepg.xml" 'Lineup Numbers Const sLineupNumbers = "1;1" 'Destination lineup Const sFinalLineup = "channels.xml" Heres a sample of the channel data from the DISHEPG xml file that IS working: <channel id="I12553.labs.zap2it.com"> <display-name>213 NASA</display-name> <display-name>213 NASA ECHOST:-</display-name> <display-name>213</display-name> <display-name>NASA</display-name> <display-name>NASA TV</display-name> <display-name>Satellite</display-name> </channel> and heres a sample of the MTEPG file that is NOT working <channel id="C6352.www.mtepgdplu.com"> <display-name>213 NASA</display-name> <display-name>213</display-name> <display-name>NASA</display-name> </channel> Any clues as to what could be wrong? The channels.xml that is coming out now looks great, I just need it to work for both my XML source files. |
#18
|
||||
|
||||
Quote:
I'll send post here an updated script that will at least display error message when it goes wrong. Regards, Stéphane. |
#19
|
||||
|
||||
Bon travail Monsieur!
Removing the "<!DOCTYPE tv SYSTEM "xmltv.dtd">" line from the MTEPG did the trick. Is there a way to get the script to ignore it? Its not a big deal if I have to manually delete it when running the lineup creator script. The importer itself has run fine for many months with the MTEPG xml. |
#20
|
||||
|
||||
Quote:
I updated the script to cry if something is wrong with the XMLTV file. Regards, Stéphane. Last edited by StephaneM; 12-23-2006 at 10:00 AM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|