MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » MediaPortal TV-Server 1 » Help on Development » Improvement Suggestions


Improvement Suggestions Got idea how the TV-Server can be improved? Post it here!

Reply
 
LinkBack Thread Tools Display Modes
Old 2007-03-13, 12:51   #1 (permalink)
Portal Member
 
dvdfreak's Avatar
 
Join Date: Jun 2006
Posts: 522
Thanks: 0
Thanked 29 Times in 16 Posts

Country:

My System

Lightbulb Improved Weekly / Daily recording algorithm

Hey all,

A while back I made a quick "fix" to MediaPortal 0.2 to change the algorithm behind Weekly (and Daily) schedules.

Like MP works out of the box is very simple: record every week from 22:00 until 23:00, whatever the program at that time. The way I modified it is also simple, but IMHO more useful: record program FOO every week "around" the same start-time.

So if program FOO is no longer broadcast nothing will be recorded. If program FOO starts 10 minutes earlier or later next week, it will still be recorded. If program FOO happens to be a 2-hour special next week, it will still be (completely) recorded.

I've been running with my little patch for a while now and could not do without it again :-)

This algorithm is very easy to implement and I'd be happy to do this for TVE3. But before I did so I wanted to throw this into the group: what is the general feedback on this? It would be great if the patch could be applied to the main code base.
dvdfreak is offline   Reply With Quote
Old 2007-03-13, 13:26   #2 (permalink)
Portal Developer
 
gemx's Avatar
 
Join Date: Oct 2006
Age: 32
Posts: 1,202
Thanks: 20
Thanked 172 Times in 90 Posts

Country:

My System

Default

I like the idea and find it very useful
__________________
ACCENT HT-100 | 2x16 VFD | ADM Athlon 64 3500+ | Win XP SP2 | SkyStar 2 DVB-S PCI | TT connect S2-3600
gemx is offline   Reply With Quote
Old 2007-03-13, 13:41   #3 (permalink)
Portal Tester
 
The_Stig's Avatar
 
Join Date: Apr 2005
Posts: 703
Thanks: 14
Thanked 2 Times in 2 Posts

My System

Default

Hi dvdfreak,

thats what have been asked several times (from me and others).

I want to draw your attention to the following threads: http://forum.team-mediaportal.com/im...9.html?t=12619
http://forum.team-mediaportal.com/fu...8.html?t=15798

Maybe you could match up with bavarian, because I think he has great ideas but not too much time. So it would be great if you jump on IRC and talk to the Coders there...thats most likely the easiest and fastest way to get it integrated.

Regards,

Paloema

Last edited by The_Stig; 2007-03-13 at 15:06.
The_Stig is offline   Reply With Quote
Old 2007-03-13, 14:10   #4 (permalink)
rtv
Portal Developer
 
rtv's Avatar
 
Join Date: Apr 2005
Location: Osnabruck
Posts: 2,512
Thanks: 84
Thanked 95 Times in 69 Posts

Country:

My System

Default

There are looots of other issues to consider - even if it might work well for you.

A decent timeslot schedule should also be able to do weighted string comparison:
E.g. title matching must include
1. Tuning TV
2. Tuning tv
3. Tuning Tv
4. TuningTV
5. ...

Some EPG sources even suffer from more difficult problems like adding the episode or part number.
1. Simpsons (28)
2. Simpsons (29)
3. ...

I guess someone might already have coded a function that takes 2 strings and returns a percentage of similiarity (only one changed case or whitespace might be 99% identical, a changed letter at the same place 98%, etc). We would be very interested in getting something like this...
rtv is offline   Reply With Quote
Old 2007-03-13, 14:21   #5 (permalink)
Portal Developer
 
gemx's Avatar
 
Join Date: Oct 2006
Age: 32
Posts: 1,202
Thanks: 20
Thanked 172 Times in 90 Posts

Country:

My System

Default

rtv is right.
Had the same problem a while ago.
I remebered that it is called the "Levenstein algorithm".
A quick search on codeproject.com showed up the following article.
http://www.codeproject.com/cs/algori...evenshtein.asp
Should be easy to implement since the example is already C#
__________________
ACCENT HT-100 | 2x16 VFD | ADM Athlon 64 3500+ | Win XP SP2 | SkyStar 2 DVB-S PCI | TT connect S2-3600
gemx is offline   Reply With Quote
Old 2007-03-13, 14:31   #6 (permalink)
Portal Member
 
Smirnuff's Avatar
 
Join Date: Dec 2004
Location: United Kingdom
Posts: 630
Thanks: 0
Thanked 2 Times in 1 Post

My System

Default

There's already a Levenstein class in the codebase. It was added to improve IMDB title matching.

I figure its also worth mentioning this document, there is an open-source Java implementation that ports easily to C#. I've used it in the past and found that it allows for very sophisticated schedules with very little effort.
__________________

Last edited by Smirnuff; 2007-03-13 at 14:39.
Smirnuff is offline   Reply With Quote
Old 2007-03-13, 14:59   #7 (permalink)
Portal Member
 
dvdfreak's Avatar
 
Join Date: Jun 2006
Posts: 522
Thanks: 0
Thanked 29 Times in 16 Posts

Country:

My System

Default

I'd be happy (time permitting) to add this to the scheduler.

And indeed the Levenstein algorithm seems a very nice addition to what I suggested in my first post.

There's also a small issue of what is considered the same time slot. In TVE2 I coded the margin as the program length minus 1 minute, so in most cases a 22:00-23:00 slot would result in a virtual start-slot of 21:01 until 22:59. If the program with the same (or we improve this to "similar enough") title starts anywhere in that region of time, it is recorded.

In any case, heaps more useful than what is possible now :-)
dvdfreak is offline   Reply With Quote
Old 2007-03-13, 15:06   #8 (permalink)
Portal Tester
 
The_Stig's Avatar
 
Join Date: Apr 2005
Posts: 703
Thanks: 14
Thanked 2 Times in 2 Posts

My System

Default

Yeah, that would solve most problems with your margin. Maybe (from a non-coders-view) it is possible to set up timeslots. That would be most flexible then, like

Record everytime when starttime is between 8 and 11 pm.

But that has all been discussed in the threads I linked in my post above...(which are working now :-| )

Regards,

Paloema
The_Stig is offline   Reply With Quote
Old 2007-03-13, 15:37   #9 (permalink)
Portal Member
 
dvdfreak's Avatar
 
Join Date: Jun 2006
Posts: 522
Thanks: 0
Thanked 29 Times in 16 Posts

Country:

My System

Default

You can take this far, but the most ideal implementation would be to keep it simple I think. Simply let the user select "Weekly", with no additional configuration on his part.

I think we can get this right for 99% of all cases, and it will definately be an improvement over the current situation :-)
dvdfreak is offline   Reply With Quote
Old 2007-03-13, 16:52   #10 (permalink)
Portal Tester
 
The_Stig's Avatar
 
Join Date: Apr 2005
Posts: 703
Thanks: 14
Thanked 2 Times in 2 Posts

My System

Default

Agreed!
The_Stig is offline   Reply With Quote
Reply

Bookmarks

Tags
algorithm, daily, improved, recording, weekly

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 On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
weekly recording does not check the showname? wunschkind MediaPortal 1 Talk 13 2006-11-21 22:15
weekly recording should check for showname wunschkind Improvement Suggestions 2 2006-11-18 16:52
Unsubscribe Weekly Recordings KeesVDP General Support 3 2006-05-18 12:43
'Daily tv recording schedule fails hpeeters Installation, configuration support 3 2006-03-22 09:07
Music: search algorithm tomtom21000 Improvement Suggestions 1 2005-03-10 01:57


All times are GMT +1. The time now is 03:44.


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