Improved Weekly / Daily recording algorithm (1 Viewer)

dvdfreak

Portal Pro
June 13, 2006
979
178
Belgium Belgium
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.
 

gemx

Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Germany Germany
    Country flag
    I like the idea and find it very useful :)
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Country flag
    Hi dvdfreak,

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

    I want to draw your attention to the following threads: https://forum.team-mediaportal.com/implementing_personal_epg-t12619.html?t=12619
    https://forum.team-mediaportal.com/fuzzy_recording-t15798.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
     

    rtv

    Retired Team Member
  • Premium Supporter
  • April 7, 2005
    3,622
    301
    Osnabruck
    Germany Germany
    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...
     

    Smirnuff

    Portal Pro
    December 7, 2004
    630
    3
    United Kingdom
    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.
     

    dvdfreak

    Portal Pro
    June 13, 2006
    979
    178
    Belgium Belgium
    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 :)
     

    The_Stig

    Retired Team Member
  • Premium Supporter
  • April 5, 2005
    2,176
    428
    Country flag
    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
     

    dvdfreak

    Portal Pro
    June 13, 2006
    979
    178
    Belgium Belgium
    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 :)
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    Top Bottom