home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Development
General Development (no feature request here!)
xmltv 2 ? (source + binary now available)
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Laban" data-source="post: 161940" data-attributes="member: 53075"><p>Hi</p><p></p><p>I had a few issues with the xmltv plugin as i've mentioned here in another thread:</p><p></p><p><a href="https://forum.team-mediaportal.com/xmltv_guide_channel_mapping-t25072.html" target="_blank">https://forum.team-mediaportal.com/xmltv_guide_channel_mapping-t25072.html</a></p><p></p><p>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.</p><p></p><p>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. </p><p></p><p>The import is then changed so that it maps the guidechannels using channel.externalid - guide.id instead of channel.Name - guide.display-name. </p><p></p><p>I've attached some screenshots on how you use this mapping tool.</p><p></p><p>It works like this:</p><p></p><p>1: </p><p></p><p>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.</p><p>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.</p><p> </p><p>2: Edit the channelmappings (removed some incorrect mappings). Click save. (abouttosave.jpg). All mapped channel will be saved. </p><p></p><p>3: Click Load/Refresh again. All mapped channels should be marked white. (aftersave.jpg)</p><p></p><p>You can of course order the mappings by clicking on the headers. Id, Name and so forth.</p><p></p><p>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 <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /> </p><p></p><p>But i'd like to get some input on this little project so let me know what you think. </p><p></p><p>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. </p><p></p><p>Edit: i'll put the source + binaries in this msg from now on. Makes it easier to find it.</p><p></p><p>Last updates: </p><p></p><p>fixed bug where the importer would run once every minute. </p><p></p><p>BBC3 and BBC 3 will now become an exact match (green) rather then a partial (yellow). </p><p></p><p>Added support for 1-n display names in the tvguide</p><p></p><p>Fixed bug concerning duplicate display-names in the tvguide.</p><p></p><p>Edit: 2007-07-16:</p><p></p><p>Added group combobox when loading channels</p><p>Added "load radio" channels checkbox, default off</p><p></p><p>The screenshots aren't exactly up-to-date atm, though i guess it doesn't matter that much </p><p></p><p>I'll start to call it a Beta release from now on, seems to work as it should, for me at least <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>Edit: 20070814:</p><p></p><p>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.</p><p></p><p>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</p><p></p><p>Edit: 20070824: fixed star-rating bug</p><p></p><p>Edit: 20070910: for the latest svn. (Note: might work, will test it after work today)</p><p></p><p>Edit: 20070929: Fixed the &amp; problem, hopefully (used ConvertHTMLToAnsi.. for the title & description)</p><p></p><p>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".</p><p> </p><p>/Laban</p></blockquote><p></p>
[QUOTE="Laban, post: 161940, member: 53075"] Hi I had a few issues with the xmltv plugin as i've mentioned here in another thread: [url]https://forum.team-mediaportal.com/xmltv_guide_channel_mapping-t25072.html[/url] 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 [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Development
General Development (no feature request here!)
xmltv 2 ? (source + binary now available)
Contact us
RSS
Top
Bottom