Improved Weekly / Daily recording algorithm | Page 7

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

  1. ronilse
    • Premium Supporter

    ronilse Retired Team Member

    Joined:
    July 19, 2005
    Messages:
    4,422
    Likes Received:
    280
    Gender:
    Male
    Occupation:
    MediaPortal tester
    Location:
    Moss
    Ratings:
    +280 / 0
    Home Country:
    Norway Norway
    Show System Specs
    Hi,
    You have to shout very LOUD to wake up paloema @ that time of the evening, maybe schedule a power on for him ;) (i'll help with testing when i have some time )

    Regards
    Roy


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. ronilse
    • Premium Supporter

    ronilse Retired Team Member

    Joined:
    July 19, 2005
    Messages:
    4,422
    Likes Received:
    280
    Gender:
    Male
    Occupation:
    MediaPortal tester
    Location:
    Moss
    Ratings:
    +280 / 0
    Home Country:
    Norway Norway
    Show System Specs
    Hi,
    After testing it a bit, it doesn't seem to breake anything here.

    Regards
    Roy
     
  4. dvdfreak

    dvdfreak Portal Pro

    Joined:
    June 13, 2006
    Messages:
    979
    Likes Received:
    178
    Ratings:
    +178 / 0
    Home Country:
    Belgium Belgium
    Cool, and apart from not breaking anything (which is obviously good news on its own), did it correctly shift the recording times in your tests?
     
  5. mzemina
    • Premium Supporter

    mzemina Retired Team Member

    Joined:
    February 23, 2005
    Messages:
    2,065
    Likes Received:
    13
    Occupation:
    Project Manager
    Location:
    Tulsa, OK
    Ratings:
    +13 / 0
    Home Country:
    United States of America United States of America
    Note: paloema changed his name. I think to the-chad or something like that.

    EDIT: OK, OK - I was relying on my memory (as bad as it is). paloema new name is The_Stig
     
  6. The_Stig
    • Premium Supporter

    The_Stig Retired Team Member

    Joined:
    April 5, 2005
    Messages:
    2,176
    Likes Received:
    288
    Ratings:
    +426 / 5
    Nearly :-P
     
  7. Broceliande
    • Premium Supporter

    Broceliande Retired Team Member

    Joined:
    April 26, 2006
    Messages:
    186
    Likes Received:
    2
    Ratings:
    +2 / 0
    Now those changes are in svn , for TVE3 , except ConflictsManager's changes, since i think we should adapt it a bit for CM.
    No use disabling cm though , imo . But feedback is welcome however
     
  8. dvdfreak

    dvdfreak Portal Pro

    Joined:
    June 13, 2006
    Messages:
    979
    Likes Received:
    178
    Ratings:
    +178 / 0
    Home Country:
    Belgium Belgium
    Thanks Broceliande, indeed, all feedback welcome, hopefully this first step in fuzzy recording is to everyone's liking!
     
  9. ronilse
    • Premium Supporter

    ronilse Retired Team Member

    Joined:
    July 19, 2005
    Messages:
    4,422
    Likes Received:
    280
    Gender:
    Male
    Occupation:
    MediaPortal tester
    Location:
    Moss
    Ratings:
    +280 / 0
    Home Country:
    Norway Norway
    Show System Specs
    Hi,
    After some more test this has to be reverted again(sorry for that & when i dunno)...

    The issues are with Schedules on a everyday, weekends, etc. basis. Theres seems to go wrong when using in combination with PowerScheduler for wakeup to record.

    In short:
    The wakeup time it's not set & the fuzzy cannot run when computer it's suspended/hibernated, so nothing it's recorded for "series recording". It goes fine as long as computer runs all the time, but thats not energy friendly ;)

    I very often leave home all weekend & have lot's of recordings scheduled & computer suspends/wakes up to record in that time.

    Regards
    Roy
     
  10. dvdfreak

    dvdfreak Portal Pro

    Joined:
    June 13, 2006
    Messages:
    979
    Likes Received:
    178
    Ratings:
    +178 / 0
    Home Country:
    Belgium Belgium
    It seems the PowerScheduler is not picking up the new recording time, which is unfortunate. Does it have its own calculation of when recordings should occur? If so it will need to be modified as well (obviously). Too bad so many parts of MediaPortal seem to have a copy/paste of the scheduling algoritm...

    Shall I take a look at this myself? Or is the PowerScheduler author on the case? :)

    UPDATE: 10 minutes later

    I saw some changes in SVN in the Scheduler.cs class regarding PowerScheduler by "micheloe", so I guess he is looking at this (or already fixed it).

    Anyway, I noticed the code had been changed slightly like this:

    " if (current != null)
    734 target = current;
    735 else if (next != null)
    736 target = next;
    737
    738 if (target != null)
    739 {
    "

    I don't think this is correct, the times of both 'current' and 'next' should be checked, otherwise the pre-recording will fail to work since 'next' will never typically be looked at (since there will typically always be a 'current' program).

    Can anyone pass this along to micheloe?

    Thanks!
     
  11. scoop
    • Premium Supporter

    scoop Retired Team Member

    Joined:
    November 14, 2004
    Messages:
    614
    Likes Received:
    7
    Ratings:
    +7 / 0
    Hi,

    I've taken my hands off it again as my changes were indeed not correct. FYI: I've reverted to the old code in current SVN, but IMHO the determination of whether or not a schedule is due should be a whole lot different for PowerScheduler to ever work with these.

    I don't want to duplicate code across several areas either and that's why I started working on it. But the way things are now, that routine is too much based on "is it on now?" which of course can never work with PS. So, unfortunately it looks like I'm gonna have to re-invent the wheel anyway, since PS only cares about correct wakeup times for recordings.

    Kind regards,
    Michel
     
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!