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

emphatic

Design Group
  • Team MediaPortal
  • August 25, 2006
    3,754
    1,242
    Alingsås
    Home Country
    Sweden Sweden
    This is awesome work you're doing, Deda. Now if only someone would make the Music section of MediaPortal come alive as well. :D

    Emph
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Hugh, yes, I saw some flaws there (at least in artist album cover and review fetching). I will try to look at that part after I finish this one as changes are so big and needs to be tested and maintained after.
     

    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,
    just to let you know: I get Exceptions when updating from configuration takes longer time ... maybe there is a memory leak?


    System.OutOfMemoryException: Eine Ausnahme vom Typ "System.OutOfMemoryException" wurde ausgelöst.
    bei System.Threading.Thread.StartInternal(IPrincipal principal, StackCrawlMark& stackMark)
    bei System.Threading.Thread.Start()
    bei MediaPortal.Video.Database.IMDBFetcher.FetchDetails(Int32 selectedMovie, IMDBMovie& currentMovie)
    bei MediaPortal.Video.Database.IMDBFetcher.RefreshIMDB(IProgress progress, IMDBMovie& currentMovie, Boolean fuzzyMatching, Boolean getActors, Boolean addToDatabase)
    bei MediaPortal.Video.Database.IMDBFetcher.GetInfoFromIMDB(IProgress progress, IMDBMovie& movieDetails, Boolean isFuzzyMatching, Boolean getActors)
    bei MediaPortal.Video.Database.IMDBFetcher.ScanIMDB(IProgress progress, ArrayList paths, Boolean fuzzyMatching, Boolean skipExisting, Boolean getActors, Boolean refreshDBonly)
    bei MediaPortal.Configuration.Sections.MovieDatabase.RebuildDatabase()
    bei MediaPortal.Configuration.Sections.MovieDatabase.startButton_Click(Object sender, EventArgs e)
    bei System.Windows.Forms.Control.OnClick(EventArgs e)
    bei System.Windows.Forms.Button.OnClick(EventArgs e)
    bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    bei System.Windows.Forms.Control.WndProc(Message& m)
    bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
    bei System.Windows.Forms.Button.WndProc(Message& m)
    bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Yes I'm aware of that. Just to be shure, do you use Create video thumbnails (In general settings/thumbnails) ?
     

    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 I'm aware of that. Just to be shure, do you use Create video thumbnails (In general settings/thumbnails) ?

    Hi Deda,

    no, I disabled thumbcreation, because this made it crash within minutes (it's using mtn.exe I assume?).
    After disabling thumbcreation, it runs much longer/better. I have activated download of actor infos, fanart, etc.
    Run's fine for wuite some time, but also seems to use quite some memory - if I remember right, it was approx. 700 MB RAM plus 300 MB Swap for configuration.exe.
     

    Guzzi

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

    not sure, when exactly it was - I think approx 1000 of 3000 total (testdb, movies created via batchscript virtually, all movies are a short 3 second sequence of the same scene).
    DB does not corrupt - so restarting the scan with option "don't update existing movies) will proceed further (what means it's not something moviespecific?)
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    Re: AW: How to Video database section and My Movies get to life

    Uh OK, I see, I will need to expand my dummy video collection to reproduce this.
    Just to ask something, if you have time, to do movie scan with some other grabber (not IMDB with Aka) just to exclude scripts from the issue.
    Anyway, thx for reporting a problem and your time for testing these changes.
     

    Guzzi

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

    Uh OK, I see, I will need to expand my dummy video collection to reproduce this.
    Just to ask something, if you have time, to do movie scan with some other grabber (not IMDB with Aka) just to exclude scripts from the issue.
    Anyway, thx for reporting a problem and your time for testing these changes.

    ups .... to be honest: I have included 3 scripts in following order: imdbwithofdb, ofdb(xml), imdb(aka) - so I am not sure what info is retrieved in what order at what time - I was assuming, that it is scraping from top to bottom whenever part of information cannot be retrieved by a script.
    So what I can do is do a scan with ONLY the imdbaka script - maybe the other scripts aren't compatible with the modded code?
     

    Deda

    Lead Dev MP1 Videos
  • Premium Supporter
  • March 18, 2009
    2,423
    2,385
    Zagreb
    Home Country
    Croatia Croatia
    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...
     

    Users who are viewing this thread

    Top Bottom