[Approved] Property #iswatched (1 Viewer)

Migue

Retired Team Member
  • Premium Supporter
  • January 27, 2006
    381
    305
    Florida
    I just found a flaw in my patch due to using GetMovieStoppedTime. If a video is watched to completion, the stopped time is 0 making the Watched property 0, but the video is still watched (as list control still marks them as watched).

    The solution is to use GetMovieStopTimeAndResumeData instead and check if there's resume data, as even if the video has been played to completion resume data still exists in the database.

    Here's the patch against RC5.

    For background on my previous patch (which this patch fixes) see: Property isplayed
     

    Attachments

    • Fix for #iswatched not set properly for videos not in database(using SVN 26063).patch
      601 bytes

    Dadeo

    Docs Group Manager
  • Premium Supporter
  • November 26, 2006
    5,340
    3,321
    Himalayas, India
    Home Country
    Canada Canada
    Thanks for the patch Migue - I separated this post from your previous patch thread to make sure it is not overlooked.
     

    Users who are viewing this thread

    Top Bottom