MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server » Help on Development » Development


Development You want to code something for the TV-Server? Share it in here!

Reply
 
Thread Tools Display Modes
Old 2007-07-10, 13:45   #21 (permalink)
Portal Member
 
Join Date: Jul 2007
Location: Luleå
Posts: 191
Thanks: 1
Thanked 18 Times in 6 Posts

Country:


Default

Quote:
Originally Posted by EpaL View Post
Just out of interest, does it force an import each time you click OK in the TV Server Configuration window? Perhaps it's me jumping in and out forcing the reload?
Seems that way. I'll look into it.

Edit: Nope, it's done automatically. I think i know what the problem is. Don't know where that line of code came from :-)
I'll release a fix asap.

Last edited by Laban; 2007-07-10 at 14:17.
Laban is offline   Reply With Quote
Old 2007-07-10, 15:38   #22 (permalink)
Portal Member
 
Join Date: Jul 2007
Location: Luleå
Posts: 191
Thanks: 1
Thanked 18 Times in 6 Posts

Country:


Default

Quote:
Originally Posted by kellizer2 View Post
Genius!!!! I have another few suggestions that maybe of interest to you.

Does it match all display names in the XMLTV channel node against the mediaportal name? I recall the original plugin only matched the first displayname, so if the matching XTLTV channel name was the second displayname node then it was not matched to the MP channel.
It uses a very simple "algorithm" currently.

1: match by name, non case sensitive, so "Canal + Film" = "canal+ FILM"
2: no match -> remove the last word, if there are more then two, try again
3: no match -> take the 3 first letters, try again

Quote:
Also, it would be sweet to allow for near match algorithms to analysis the comparisons between the channel names in Mediaportal and in that of the xmltv file. Basically, nothing complex but what I am thinking of a decorator style pattern on where you have a drop down combobox with different algorithms that can run against the datasets to see if you can have a comparative match between unconnected TV Channels.

E.G.
The above is of course doable. Though i'm not sure that it would be worth the effort. You'd probably run into the problem that you get a lot of incorrect partial matches and you'd have to go through them and "disable" the mapping. You shouldn't have to do these mappings that often either.

Quote:
Title Match, whitespace trim – put both the MP Channel and the xmltv channel into lower case & trim the white spaces - the would mean that if the MP Channel is called BBC 3 and the XMLTV Channel was bbc3 then both would match. For some reason; the channels in the UK have spaces and whitespace mismatch.
This should show up anyway (see step 1,2,3), though you might not necessarily get the correct channel. But you need to go through all partial matches anyway and you should end up close to the channel you are looking for. But this is a really simple fix, i'll try to put it in the next version.

Quote:
Obviously this is simply to aid in the setup time in the mapping between the channel – but does help if you have >200 channels. What do you think?
See the answer to the second question.

Quote:
Do you update the original binaries at the start of the post?
Yes.

Quote:
If there is anything that I can do then give me a shout but I’m a java programmer by trade but never scared to have a go with C#.

Cheers,

Ian
Well, i'm a java programmer by trade too. Though C# is pretty similiar, don't really see a problem going from java to c#. As for help, well, you could fix the TstDictionary classes that i'm using for doing wildcard searches :-). The PartialMatch method didn't work as promised, otherwise it would have been easy to do the stuff that you were talking about above. To lazy to do it myself, or to implement a wildcardsearch myself. I have other projects that i want to start with also :-).

A easy thing would of course be to use the database for the wildcard searches. But, i dunno, don't really see the reason to make this more advanced then it is. Feel free to implement something like that yourself though. The source code is available. Though i would perhaps wait until most of the bugs are sorted out if i were you :-)

Last edited by Laban; 2007-07-10 at 15:47.
Laban is offline   Reply With Quote
Old 2007-07-10, 15:57   #23 (permalink)
Portal Member
 
Join Date: Jul 2007
Location: Luleå
Posts: 191
Thanks: 1
Thanked 18 Times in 6 Posts

Country:


Default

Quote:
Originally Posted by Hemin View Post
Thank you very much Laban!!

I sent to you a mail with bug reporting on 8 Jul but i recived a delayed delivery warning today (?¿). So I put here the bugs i found:
Almost forgot. Where did you send that mail, dev@null.com ?

If you did then that was perhaps a bad joke ->

http://en.wikipedia.org/wiki//dev/null

Just put the bugreports in this thread for now.
Laban is offline   Reply With Quote
Old 2007-07-10, 16:14   #24 (permalink)
Portal Member
 
Join Date: Jul 2007
Location: Luleå
Posts: 191
Thanks: 1
Thanked 18 Times in 6 Posts

Country:


Default

Quote:
Obviously this is simply to aid in the setup time in the mapping between the channel – but does help if you have >200 channels. What do you think?
I'd like to expand on this a little bit more. How many of these 200 channels are we talking about that doesn't give you a descent match with the current simple algorithm ?

If we're talking about 20+ channels then it might be a good idea to implement something. If we are, then you could post some samples of what we are talking about. One example that i have with the swe grabber is a channel that it split, sends children stuff in the daytime, then hmm, i guess documentaries in the evenings. It has the names split like barnkanalen/kunskapskanalen (direct translation would be childrenschannel/knowledgechannel).

This will not give you a match with the current algorithm. But i only have one channel with this problem so it wouldn't be worth the effort for my own uses. Especially since you shouldn't have to do these mappings that often. Preferably only once, and then just for the new channels when you do a new autotune.

And you have the export functionality (not the one in the xmltv plugin, the one that exports the tuning and all that in the channels section) for reinstallations and stuff like that so there's no need to redo it then either.

Last edited by Laban; 2007-07-10 at 17:13.
Laban is offline   Reply With Quote
Old 2007-07-10, 17:22   #25 (permalink)
Portal Member
 
Join Date: Jul 2007
Location: Luleå
Posts: 191
Thanks: 1
Thanked 18 Times in 6 Posts

Country:


Default

New version now available. Fixed the xmltv import running once/minute bug.
BBC 3 - BBC3 will now become an exact match.

/Laban
Laban is offline   Reply With Quote
Old 2007-07-10, 18:43   #26 (permalink)
Portal Member
 
Join Date: Dec 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Quote:
New version now available. Fixed the xmltv import running once/minute bug.
BBC 3 - BBC3 will now become an exact match.
Great - i think that this sorts the no matching displaynames as more often that not they mismatch - i also understand having a multiple pattern matching algorithms is most probably overkill, espicially that you can go through and manually amend them.

Quote:
If we're talking about 20+ channels then it might be a good idea to implement something. If we are, then you could post some samples of what we are talking about. One example that i have with the swe grabber is a channel that it split, sends children stuff in the daytime, then hmm, i guess documentaries in the evenings. It has the names split like barnkanalen/kunskapskanalen (direct translation would be childrenschannel/knowledgechannel).
No, i can't see it being >20 channels and yes, it would make sense to do it manually

The main issue in the UK that i can see is that we have >1 displayname node for the channel - the MP Name is utv but as it does not appear first - it does not get match

PHP Code:
  <channel id="utvlive.com">
    <
display-name>Ulster</display-name>
    <
display-name>UTV</display-name>
    <
icon src="http://www.lyngsat-logo.com/logo/tv/uu/ulster_tv.jpg" />
  </
channel
i don't know off hand the volume of values that fall into this but would say it is at least over 10 - for some reason the BBC regional & New Digital Channels have their name in the non primary display-name

I may take you up on seeing if can get my head round C#; hope it is not too hard.

keep up the great work.

Ian.
kellizer2 is offline   Reply With Quote
Old 2007-07-10, 20:12   #27 (permalink)
Portal Member
 
Join Date: Jul 2007
Location: Luleå
Posts: 191
Thanks: 1
Thanked 18 Times in 6 Posts

Country:


Default

Quote:
Originally Posted by kellizer2 View Post
The main issue in the UK that i can see is that we have >1 displayname node for the channel - the MP Name is utv but as it does not appear first - it does not get match

PHP Code:
  <channel id="utvlive.com">
    <
display-name>Ulster</display-name>
    <
display-name>UTV</display-name>
    <
icon src="http://www.lyngsat-logo.com/logo/tv/uu/ulster_tv.jpg" />
  </
channel
i don't know off hand the volume of values that fall into this but would say it is at least over 10 - for some reason the BBC regional & New Digital Channels have their name in the non primary display-name
Ok, hmm, there's at least two simple options for this. One is to always use the shortest name first if there are more then one. Though i'm guessing that the shortest name isn't always the correct one.

The other is to create a channel object for each display-name. They'll both have the same externalid (of course) so this won't matter at all for the mappings themselves.

The only thing that'll happen is that there will be a few more channels to go through when trying to find a match for each channel from the MP. Shouldn't be a big problem afaics. I'm going to try and implement that and i'll put it in a separate release to begin with.
Laban is offline   Reply With Quote
Old 2007-07-10, 20:48   #28 (permalink)
Portal Member
 
Join Date: Jul 2007
Location: Luleå
Posts: 191
Thanks: 1
Thanked 18 Times in 6 Posts

Country:


Default

Added support for multiple display-names in the tvguide. F.e

<channel id="utvlive.com">
<display-name>Ulster</display-name>
<display-name>UTV</display-name>
<icon src="http://www.lyngsat-logo.com/logo/tv/uu/ulster_tv.jpg" />
</channel>

This means that you should get an exact match if the MP(tuned) channel is named Ulster or UTV (non case sensitive of course).
Laban is offline   Reply With Quote
Old 2007-07-10, 22:37   #29 (permalink)
Portal Member
 
Join Date: Dec 2006
Posts: 26
Thanks: 0
Thanked 0 Times in 0 Posts


Default

Hey laban,

Seems the last version of the plugin is broke- when i press load/refresh it simply finishes instantly and no programs import - the xmltv2 screen says that the program have been imported. Rolling back the DLL fixes the issue.

Nothing seen in the logs

Cheers,

Ian.
kellizer2 is offline   Reply With Quote
Old 2007-07-11, 00:09   #30 (permalink)
Portal Member
 
Join Date: Dec 2006
Posts: 36
Thanks: 2
Thanked 0 Times in 0 Posts

Country:


Default

Quote:
Originally Posted by Laban View Post
Quote:
Originally Posted by Hemin View Post
Thank you very much Laban!!

I sent to you a mail with bug reporting on 8 Jul but i recived a delayed delivery warning today (?¿). So I put here the bugs i found:
Almost forgot. Where did you send that mail, dev@null.com ?

If you did then that was perhaps a bad joke ->

http://en.wikipedia.org/wiki//dev/null

Just put the bugreports in this thread for now.
don't worry! my ignorance about linux is the same as the ignorance to understand bad jokes
Hemin is offline   Reply With Quote
Reply

Bookmarks

Tags
binary, source, xmltv

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
2 problems with XMLTV ChuckTX xmlTV 2 2007-03-09 17:54
XMLtv tvviewer Installation, configuration support 4 2006-08-24 17:25
Help with xmltv donmega General Support 4 2005-11-21 23:02
XMLTV blackfundi Plugins/Erweiterungen 1 2005-09-05 10:19
XMLTV Automate Anonymous Tips and Tricks 4 2005-01-17 14:53


All times are GMT +1. The time now is 19:37.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 Protected by Akismet Blog with WordPress