| |||||||
| Improvement Suggestions Got idea how the TV-Server can be improved? Post it here! |
![]() |
| | LinkBack | Thread Tools | Display Modes |
| | #1 (permalink) |
| Portal Member | 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. |
| | |
| |
| | #2 (permalink) |
| Portal Developer Join Date: Oct 2006 Age: 32
Posts: 1,202
Thanks: 20
Thanked 172 Times in 90 Posts
Country: | 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 |
| | |
| | #3 (permalink) |
| Portal Tester | 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. |
| | |
| | #4 (permalink) |
| Portal Developer Join Date: Apr 2005 Location: Osnabruck
Posts: 2,512
Thanks: 84
Thanked 95 Times in 69 Posts
Country: | 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... |
| | |
| | #5 (permalink) |
| Portal Developer Join Date: Oct 2006 Age: 32
Posts: 1,202
Thanks: 20
Thanked 172 Times in 90 Posts
Country: | 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 |
| | |
| | #6 (permalink) |
| Portal Member Join Date: Dec 2004 Location: United Kingdom
Posts: 630
Thanks: 0
Thanked 2 Times in 1 Post
| 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. |
| | |
| | #7 (permalink) |
| Portal Member | 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 :-) |
| | |
| | #8 (permalink) |
| Portal Tester | 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 |
| | |
| | #9 (permalink) |
| Portal Member | 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 :-) |
| | |
![]() |
| Bookmarks |
| Tags |
| algorithm, daily, improved, recording, weekly |
| Thread Tools | |
| Display Modes | |
|
|
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 |