Improved Weekly / Daily recording algorithm | Page 11

Discussion in 'Improvement Suggestions' started by dvdfreak, March 13, 2007.

  1. dvdfreak

    dvdfreak Portal Pro

    Joined:
    June 13, 2006
    Messages:
    979
    Likes Received:
    178
    Ratings:
    +178 / 0
    Home Country:
    Belgium Belgium
    I'm from Belgium too, and yes, with our erratic TV schedules this is indeed really needed ;)

    The code is currently ready enough for the MP side of things to be started on. So in other words, change the TV Guide GUI from the tv plugin to use the new scheduler service. Write a new GUI for scheduling programs, displaying the upcoming recordings, etc...

    I lack the free time to work on this full speed, so it's very hard to give a timeframe. But if someone's reading this who posesses the necessary MP GUI/plugin and C# skills to help out on this, the help is more than welcome! All the backend stuff is starting to work nicely, not to say it too still needs work of course ;)


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. THDBASED

    THDBASED Portal Pro

    Joined:
    January 30, 2006
    Messages:
    469
    Likes Received:
    2
    Occupation:
    Student
    Ratings:
    +2 / 0
    Home Country:
    Belgium Belgium
    Well I think the time couldn't be better to integrate this or plan this. In the GFX forum they are planning a total redesign of the myTV section. I think you should contact the devs or make a thread in GFX forum that lists the things that should be integrated in the layout so your new recording code could work.
     
  4. dvdfreak

    dvdfreak Portal Pro

    Joined:
    June 13, 2006
    Messages:
    979
    Likes Received:
    178
    Ratings:
    +178 / 0
    Home Country:
    Belgium Belgium
    Yes, especially the scheduling screen could need some work to offer all the new recording possibilities.

    On the other hand, while the scheduler service will offer a lot more possibilities, it's not always necessary to expose all of these immediately. For example, it will be possible to select on what day of the week to record, a schedule that records all gameshows on Monday and Wednesday only for instance. But for a first version, do we already want to do all the work to let the user select any day in the week, or will we keep it on Working Days, Weekends for starters?

    Not to say I'm pro any of these two choices, just want to point out that we have the freedom to choose just how much we want to redo the GUI.
     
  5. THDBASED

    THDBASED Portal Pro

    Joined:
    January 30, 2006
    Messages:
    469
    Likes Received:
    2
    Occupation:
    Student
    Ratings:
    +2 / 0
    Home Country:
    Belgium Belgium
    Do you have a diagram or even a simple text file which has the basic options there are available. I don't have that much time right now but when I have I might have a crack at it trying to work something out layout wise...
     
  6. dvdfreak

    dvdfreak Portal Pro

    Joined:
    June 13, 2006
    Messages:
    979
    Likes Received:
    178
    Ratings:
    +178 / 0
    Home Country:
    Belgium Belgium
    These are the rules that are defined right now. Since this is work in progress rules may be added or modified of course, but it will give you a good idea:

    Code (Text):
    1. public enum ScheduleRuleType
    2. {
    3.     TvChannels, // Record on the given channel(s).
    4.     Time, // Record at the given start/stop time.
    5.     AroundTime, // Record the timeslot closest to the given start time (usually combined with TitleEquals and DaysOfWeek).
    6.     BetweenTimes, // Record a program when its start time is between the two given times.
    7.     DaysOfWeek, // Record on these days of the week.
    8.     TitleEquals, // Record program with the given title.
    9.     SubTitleEquals, // Record program with the given sub-title.
    10.     TitleStartsWith, // Record program who's title starts with the given text.
    11.     TitleContains, // Record program who's title contains the given text.
    12.     DescriptionContains, // Record program who's description contains the given text.
    13.     CategoryEquals, // Record programs from this category.
    14.     DirectedBy, // Record program directed by given name.
    15.     WithActor, // Record program which has the actor by the given name.
    16.     SkipRepeats, // Only record first-run (non-repeat) programs if the argument to this rule is true.
    17.     GuideProgram // Record the program with the given ProgramGuideId (if found, usually combined with TitleEquals and Time).
    18. }
    The arguments to these rules are as follows:

    • TvChannels - one or more GUIDs of TV channels
    • Time - date/time of the program
    • AroundTime - start-time of the program
    • BetweenTimes - start time and end time to define a range
    • DaysOfWeek - a flags enum that combines the days of the week, e.g. ScheduleDaysOfWeek.Monday|ScheduleDaysOfWeek.Friday
    • TitleEquals, SubTitleEquals, TitleStartsWith, TitleContains, DescriptionContains - a single string
    • CategoryEquals,DirectedBy,WithActor - one or more strings (logical OR)
    • SkipRepeats - bool
    • GuideProgram - GUID of the program in the TV guide
    All these rules can be combined to narrow down exactly what you want to record.

    Hope this is clear enough?
     
  7. dvdfreak

    dvdfreak Portal Pro

    Joined:
    June 13, 2006
    Messages:
    979
    Likes Received:
    178
    Ratings:
    +178 / 0
    Home Country:
    Belgium Belgium
    Just wanted to draw attention to the alpha version of the TvScheduler that has been uploaded to:

    https://forum.team-mediaportal.com/rule_based_tvscheduler_service-t26158.html

    It's work in progress and doesn't do a lot yet (it's all backend stuff), but the foundation is there. Someone could for example write an EPG viewer for it, or adjust the existing TV Guide program in MediaPortal to use the TvScheduler guide service.
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!