Hi
I had a few issues with the xmltv plugin as i've mentioned here in another thread:
https://forum.team-mediaportal.com/xmltv_guide_channel_mapping-t25072.html
So i decided to have a go at doing some changes that i think/hope will help (at least help me) when using the xmltv plugin.
The basic idea is that you'll map the channels "manually" (channel.externalid -> guide.id) using a new mapping function that i've added to the XmlTvImport plugin.
The import is then changed so that it maps the guidechannels using channel.externalid - guide.id instead of channel.Name - guide.display-name.
I've attached some screenshots on how you use this mapping tool.
It works like this:
1:
You'll load the channels/mappings (firstload.jpg). The tvguide-channels are loaded from the tvguide.xml (tvguide.lst...) and mapped using the display-name. Start by using the exact name, then first word and then three first letters.
Mappings that are marked (right column) green are exact matches, yellow partial match, red = no match. White = already mapped. Should be no such columns before the first mapping.
2: Edit the channelmappings (removed some incorrect mappings). Click save. (abouttosave.jpg). All mapped channel will be saved.
3: Click Load/Refresh again. All mapped channels should be marked white. (aftersave.jpg)
You can of course order the mappings by clicking on the headers. Id, Name and so forth.
It seems to work as it should but i haven't done any testing of the actual import (programs), i'm saving that for tomorrow. Perhaps i've fucked up the whole thing
But i'd like to get some input on this little project so let me know what you think.
Not sure what to do if this turns out to be something worth adding to the official code but perhaps i'm getting ahead of things here.
Edit: i'll put the source + binaries in this msg from now on. Makes it easier to find it.
Last updates:
fixed bug where the importer would run once every minute.
BBC3 and BBC 3 will now become an exact match (green) rather then a partial (yellow).
Added support for 1-n display names in the tvguide
Fixed bug concerning duplicate display-names in the tvguide.
Edit: 2007-07-16:
Added group combobox when loading channels
Added "load radio" channels checkbox, default off
The screenshots aren't exactly up-to-date atm, though i guess it doesn't matter that much
I'll start to call it a Beta release from now on, seems to work as it should, for me at least
Edit: 20070814:
Fixed importing .lst files and a progressbar issue when saving the mappings. Source code not available in the latest .zip, i'll fix that asap.
Edit: 20070823: latest SVN introduces a change in the channel , name and displayname are separated (a really good idea). Added a fix for this (download the _latestsvn version). Haven't had time to test it but it should work. There are some additional stuff in this version also, checkbox for visible in guide in the mappings table f.e
Edit: 20070824: fixed star-rating bug
Edit: 20070910: for the latest svn. (Note: might work, will test it after work today)
Edit: 20070929: Fixed the & problem, hopefully (used ConvertHTMLToAnsi.. for the title & description)
Edit: 20071023: Changed the "Delete before import" functionality. Now it only removes the programs the for the channels available in the tvguide.xml file(s) before importing, used to be "delete from program".
/Laban
I had a few issues with the xmltv plugin as i've mentioned here in another thread:
https://forum.team-mediaportal.com/xmltv_guide_channel_mapping-t25072.html
So i decided to have a go at doing some changes that i think/hope will help (at least help me) when using the xmltv plugin.
The basic idea is that you'll map the channels "manually" (channel.externalid -> guide.id) using a new mapping function that i've added to the XmlTvImport plugin.
The import is then changed so that it maps the guidechannels using channel.externalid - guide.id instead of channel.Name - guide.display-name.
I've attached some screenshots on how you use this mapping tool.
It works like this:
1:
You'll load the channels/mappings (firstload.jpg). The tvguide-channels are loaded from the tvguide.xml (tvguide.lst...) and mapped using the display-name. Start by using the exact name, then first word and then three first letters.
Mappings that are marked (right column) green are exact matches, yellow partial match, red = no match. White = already mapped. Should be no such columns before the first mapping.
2: Edit the channelmappings (removed some incorrect mappings). Click save. (abouttosave.jpg). All mapped channel will be saved.
3: Click Load/Refresh again. All mapped channels should be marked white. (aftersave.jpg)
You can of course order the mappings by clicking on the headers. Id, Name and so forth.
It seems to work as it should but i haven't done any testing of the actual import (programs), i'm saving that for tomorrow. Perhaps i've fucked up the whole thing
But i'd like to get some input on this little project so let me know what you think.
Not sure what to do if this turns out to be something worth adding to the official code but perhaps i'm getting ahead of things here.
Edit: i'll put the source + binaries in this msg from now on. Makes it easier to find it.
Last updates:
fixed bug where the importer would run once every minute.
BBC3 and BBC 3 will now become an exact match (green) rather then a partial (yellow).
Added support for 1-n display names in the tvguide
Fixed bug concerning duplicate display-names in the tvguide.
Edit: 2007-07-16:
Added group combobox when loading channels
Added "load radio" channels checkbox, default off
The screenshots aren't exactly up-to-date atm, though i guess it doesn't matter that much
I'll start to call it a Beta release from now on, seems to work as it should, for me at least
Edit: 20070814:
Fixed importing .lst files and a progressbar issue when saving the mappings. Source code not available in the latest .zip, i'll fix that asap.
Edit: 20070823: latest SVN introduces a change in the channel , name and displayname are separated (a really good idea). Added a fix for this (download the _latestsvn version). Haven't had time to test it but it should work. There are some additional stuff in this version also, checkbox for visible in guide in the mappings table f.e
Edit: 20070824: fixed star-rating bug
Edit: 20070910: for the latest svn. (Note: might work, will test it after work today)
Edit: 20070929: Fixed the & problem, hopefully (used ConvertHTMLToAnsi.. for the title & description)
Edit: 20071023: Changed the "Delete before import" functionality. Now it only removes the programs the for the channels available in the tvguide.xml file(s) before importing, used to be "delete from program".
/Laban