VideoDatabaseV5 design issue (1 Viewer)

ajs

Development Group
  • Team MediaPortal
  • February 29, 2008
    14,138
    8,690
    Kyiv
    Home Country
    Ukraine Ukraine
    'EditBin.exe' is not recognized as an internal or external command
    This is part of the studio, when you compile it should find it by idea, maybe not installed any extension for the studio ...
     

    Anthony Vaughan

    MP Donator
  • Premium Supporter
  • June 25, 2015
    474
    234
    Home Country
    United Kingdom United Kingdom
    Phew! Now got everything working.

    I have been trying to get the MediaPortal app and config app to run in debug mode (real time) and that doesn't seem to work. Is that right or am I missing something?

    Anyway, good to go now. Now to see whether I can stop MediaPortal from locking the client file for the whole session, because that is what makes synchronizing clients soooo tricky. I know that the initial connection is expensive but, once the first connection has been made, all subsequent connections should be fast even when the app is disconnecting and reconnecting repeatedly. Once I know that the current lock is temporary, I can make the synchronizing app wait until the lock is freed before distributing the client changes to all other clients.

    Thanks for the help.

    Tony
     

    Anthony Vaughan

    MP Donator
  • Premium Supporter
  • June 25, 2015
    474
    234
    Home Country
    United Kingdom United Kingdom
    I'm finding the odd what-I-think-is-a-bug. Do you want me to let you know about them?

    For example, in GUIVideoFiles.cs, method DoOnPlayBackStoppedOrChanged(), a movie has been watch and we know this for sure,

    But the code does this:
    C#:
                if (!watched)
                {
                  VideoDatabase.SetMovieWatchedStatus(idMovie, false, playTimePercentage);
                }
                else // Update new percentage if already watched
                {
                  VideoDatabase.SetMovieWatchedStatus(idMovie, true, playTimePercentage);
                }
    Now, watched has just been read from the database. Therefore, when this is the first time you have watched this movie the watched status will be False and won't get changed - and it never does. I've changed the code to this:


    // This method is only called when movie is watched, so set watched to true
    // irrespective of whether the movie had been watched before.


    I should point out that the earlier code does this

    //Set file "watched" only if user % value or higher played time (share view)

    but this isn't correct when this is the first time you have watched the movie because the _watchedPercentage isn't being set correctly (it seems to be hard coded at 95).

    Hope this helps.

    Tony
     
    Last edited by a moderator:

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    14,138
    8,690
    Kyiv
    Home Country
    Ukraine Ukraine
    Plz use code tag and Github link to master branch ...
     

    ajs

    Development Group
  • Team MediaPortal
  • February 29, 2008
    14,138
    8,690
    Kyiv
    Home Country
    Ukraine Ukraine
    but this isn't correct when this is the first time you have watched the movie because the _watchedPercentage isn't being set correctly (it seems to be hard coded at 95).
    Where hardcoded?
    But the code does this:
    Yes this code work when you watch movie and playTimePercentage < _watchedPercentage, And if playTimePercentage < _watchedPercentage we only update playTimePercentage in movie, and dont touch watched flag ...
    IMHO its work, and work fine ...
     

    Users who are viewing this thread

    Similar threads

    Could be that a sudden powercut corrupts the database, or give all your pcs a new ipadres, or several more things that can break up a running mediaportal setup. Without the logs however, I don't have a clue on what exactly is wrong...
    Could be that a sudden powercut corrupts the database, or give all your pcs a new ipadres, or several more things that can break up...
    Hi there, I'm a happy long time user and am currently using MP 1.25. Up until now I had no issues with my setup. Yesterday...
    Replies
    1
    Views
    560
    It is looking and working very well now and I am almost at the point of switching my HTPC to MP2, madvr would definitely push me over the edge for sure.;)
    It is looking and working very well now and I am almost at the point of switching my HTPC to MP2, madvr would definitely push me...
    We are proud to present MediaPortal 2.3 MediaPortal 2.3 is a full-blown media center software that addresses the most common user...
    Replies
    4
    Views
    3K
    Hi CyberSimian I have done a fair bit of testing off MP2. I had to abandon it because the user interface is a bit primitive in its functionality. Namely, the MP2 guide does not scroll perpetually; i.e. when you scroll up and reach BBC1 the scrolling stops. So, to get to the programmes immediately before BBC1, you have to scroll down...
    Hi CyberSimian I have done a fair bit of testing off MP2. I had to abandon it because the user interface is a bit primitive in its...
    Hi CyberSimian I am finding that, for some folders, I get duplicate records created in the file table, and consequently the movie...
    Replies
    6
    Views
    4K
    We are proud to present MediaPortal 2.3.1 MediaPortal 2.3.1 is a full-blown media center software that addresses the most common user requirements out of the box. Aside from its support for Live TV and Radio, it offers a complete media server for music, movies, and TV shows. Info is automatically downloaded from various sources to...
    We are proud to present MediaPortal 2.3.1 MediaPortal 2.3.1 is a full-blown media center software that addresses the most common...
    We are proud to present MediaPortal 2.3.1 MediaPortal 2.3.1 is a full-blown media center software that addresses the most common...
    Replies
    0
    Views
    1K
    Thanks for this new release of MP. The link on the presentation page of the new version is incorrect. It goes on the MP 1.24 thread.
    Thanks for this new release of MP. The link on the presentation page of the new version is incorrect. It goes on the MP 1.24 thread.
    We have just released MediaPortal 1.25 Final - Summer 2020 Edition Highlights of this release Bugfixes: [MP1-4966] - Update...
    Replies
    1
    Views
    3K
    Top Bottom