[Approved] How to Video database section and My Movies get to life (4 Viewers)

Guzzi

Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    AW: How to Video database section and My Movies get to life

    OK, I will do a test run with only ibdm-aka script enabled and see what happens (except getting details in english instead of german ;-))
     

    xvffx

    Portal Pro
    August 15, 2007
    313
    53
    Home Country
    Canada Canada
    Hi Deda,

    any thoughts with regard to "THE" in front of the video titles?

    not so thrill when the movies are organized along with it

    Vff
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    AW: Re: How to Video database section and My Movies get to life

    Yes, all scripts are compatible with new files (only new movie details will be empty as old scripts doesn't know about it).
    Concerning scanning order, you're right, it goes from top to the bottom, and what script is used depends if it retrieve results from first search by Movie name, then the same script is used for details (no matter if it fetch details or not). If first search fails then MP tries to use 2nd in the list and so on...

    Hi Deda,
    just to give feedback and let you know: After diabling all other scripts excelt your new imdb-aka it's working and didn't crash anymore...
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Added new binaries and patch files (xvffx smiles now :) , excluded German prefix DIE from initial prefixes <<Just think what will become from ie. Die Hard :) >>).
    Some new option and features and many minor internal changes.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    AW: How to Video database section and My Movies get to life

    Hi Deda,
    I encountered following problem:
    In VideoOSD.XML screen I don't get the coverart anymore (using BlackGlass 2.6) when playing a video in MyFilms.
    I was first searching in the plugincode of MyFilms, because I changed things there (added use of imageswapper() and asyncloading of coverart) - but then remembered, that I updated MePo files with your patch.
    So I went back to 1.1 files and with that I got the coverart back.
    MyFilms is using following for videos:

    static PlayListPlayer playlistPlayer;

    {
    playlistPlayer = PlayListPlayer.SingletonPlayer;
    }

    Init:
    g_Player.PlayBackStarted += new g_Player.StartedHandler(OnPlayBackStarted);
    g_Player.PlayBackEnded += new g_Player.EndedHandler(OnPlayBackEnded);
    g_Player.PlayBackStopped += new g_Player.StoppedHandler(OnPlayBackStopped);

    But I think the important part is this:

    // update the MP Video Databse for OSD view during playing
    update_database(fileName, select_item, -1);
    newItems.Add(fileName);

    So is this a bug in your new code or do I have to change something to fix it on plugin side?

    Appreciate your help,

    THanks, Guzzi
     

    Attachments

    • update_database.txt
      5.1 KB

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Maybe because of cover thumb filename change ie:

    Before: FilmL.jpg and Film.jpg

    Patched files: Film{dbID}L.jpg and Film{dbID}.jpg - {} are also part of the filename

    L is large cover, 2nd is small thumb.

    I had to do like this because of overlapping covers if the movies have the same title but they are from different years.

    Another way can be to put covers as binary data in videodatabase (hmm I need to see if mySQL can do this) but then db can be huge in case of big movie collection.
     

    Guzzi

    Retired Team Member
  • Premium Supporter
  • August 20, 2007
    2,159
    750
    AW: How to Video database section and My Movies get to life

    Hmmm, ok, but the skin displays as (VideoOSD.xml):

    <control>
    <description>Thumb</description>
    <type>image</type>
    <id>102</id>
    <texture>#Play.Current.Thumb</texture>
    </control>

    So maybe there is place in g_player where it populates the play.current.thumb that doestn't work anynmore?

    Edit: Hmmm, ok, if I just change the dll's into existing environment (and data), maybe it doestn't (re)create the thumbs, because the movie is already in the DB?
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Could be, but this is interesting as I don't want to break anything with this patch, even plugins. If you can find potential problem please let me know. Those cover filename changes are the only thing which I changed to unusable state from previous versions of MP. All other changes are backward compatible (even db upgrade as it can work with old versions).
     

    Users who are viewing this thread

    Top Bottom