Movies - enhanced details + cover retrieval + auto matching (4 Viewers)

gamejester

Retired Team Member
  • Premium Supporter
  • May 13, 2007
    418
    37
    Home Country
    United Kingdom United Kingdom
    The thing i still find a bit anoying is when it returns ambiguous results and then i have to go through the list and select the one i want. I would rather it had a 'best guess' all the time, then when I am in the MP GUI if i see a movie with wrong details I hot the IMDB refresh button and select it from a list then.

    To this end, and possibly to help towards some of the poorly named files issues, I am just testing a new version of the fuzzy logic where by it adds the sort order position to the Levenshtein distance. What this means is the the first result returned from the grabber will have a better chance of being the one picked and it is also unlikely that any 2 movies in the list will have the same weighting resulting in less user input.

    Seems to be working well; do you think this is a good approach?
     

    seco

    Retired Team Member
  • Premium Supporter
  • August 7, 2007
    1,575
    1,239
    Home Country
    Finland Finland
    So what's the point of having all these algorithms if we still have to do manual work at the end ;)

    Like creating folders for our movies that have exactly the same name that the movie title has.
     

    Spaldo

    MP Donator
  • Premium Supporter
  • May 7, 2008
    495
    12
    FlashFXP Development Team
    Home Country
    One of the issues I was trying to mention, was when the scan mis-identifies the movie and you fix it up in the MP editor, then the cover wont search. It just says 'unknown' near the link and nothing in the box on the left.

    I will try to give you a specific example and steps to reproduce over the next few days.

    I have also added a few movies in the MP editor, selected the cover (new) and then it is not showing up in the actual MP interface. Again, I will give a specific example when I can with steps to reproduce.
     

    gamejester

    Retired Team Member
  • Premium Supporter
  • May 13, 2007
    418
    37
    Home Country
    United Kingdom United Kingdom
    new version of the fuzzy logic where by it adds the sort order position to the Levenshtein distance...........Seems to be working well

    Rubbish, turned out to be toss!
    Still it led me to another method which is sweet, so far it has even managed to match mispelt movies first time!

    What it now does is manipulate your filename and the returned grabber list before calcualting levenshtein distance and if it gets a zero score (exact match) does not bother looking through the rest of the list. Also if the first match in the returned list is the best match it will not ask you to confirm, even if there are other movies with the same match score.

    Finally it formats the year information the same to both matching strings; so if you have no year stored in your movie names it strips them off both sides; but if you do use movie year in the name it makes sure it is formated the same both sides for the compare; ie in brackets (2000) + it also removes the grabbers tag like (moviexml) from the string allowing for a perfect match.

    This new method leads itself to the possibility of finding a year in a long string.
    If we look at the example previously given

    Black.Hawk.Down.2001.BluRay.1080p.DTS.x264.dx va-EuReKA.mkv

    What we could do is search the string in reverse order for a 4 digit number.
    Then assume this is the year, dump everything after it and grab what is before it as the movie name.
    Then we just need to create some logic to decide when to do this, maybe some regex to find strings where the majority of words are seperated with . rather than ' '.........hummm, will require some thought.
     

    gamejester

    Retired Team Member
  • Premium Supporter
  • May 13, 2007
    418
    37
    Home Country
    United Kingdom United Kingdom
    Hi!

    This sounds great :) I can't test it tho, as I allready have a modified core.dll. Any chance you could merge this with sambals filmstrip view scrolloffset-fix?

    All these changes are destined for 1.0.1 so there is a fair bit of maintining to do to keep them up with svn for the next few months. Will see what the opion is on whether the fix you mentioned will be rolled it any any time.

    New version release. v6. see first post.

    auto matching improved, when selected it will now ALWAYS make it's best guess.
    If first item in list is an exact match it is chosen.
    If 2 movies or more are equally matched the newest one is returned.
    Scene file names auto passed if in this format
    this.is.the.name.of.the.move.1999.1080p.h.264.what ever.squigel.stuff.more.stuff.avi
    requires all dots as seperators and a year in the string
     

    stoked

    MP Donator
  • Premium Supporter
  • December 14, 2007
    297
    8
    Home Country
    Canada Canada
    gamejester,

    Looks really good! Regarding Still To Do: 6. Get movies folder to work, if the option is selected it will take the movie name from the folder and treat the content of the folder as the movie files and cover art.

    Solis66 made some mods that worked quite well: https://forum.team-mediaportal.com/...-scan-folders-instead-files-31794/index7.html

    Perhaps you could incorporate his work into your changes? I asked him to add playing movie file inside a folder instead of drilling into the folder when folder is selected but it's currently broken for iso, img files that need to be mounted via daemontools. I believe he sent me the source code to his plugin, but I'll have to look for it.
     

    Sutekh

    Portal Pro
    April 16, 2008
    68
    8
    Home Country
    Hi there,

    I just installed version 6 on a fresh install of RC2 with latest SVN. I have a bug when I try to manually add a new movie. When I goto the last movie in the list - "New..." - then change the title to the movie I am looking for and press Lookup.. i get the following error.

    System.ArgumentOutOfRangeException: InvalidArgument=Value of '0' is not valid for 'index'.
    Parameter name: index
    at System.Windows.Forms.ListView.ListViewItemCollection.get_Item(Int32 index)
    at MediaPortal.Configuration.Sections.MovieDatabase.get_CurrentMovie()
    at MediaPortal.Configuration.Sections.MovieDatabase.buttonLookupMovie_Click(Object sender, EventArgs e)
    at System.Windows.Forms.Control.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnClick(EventArgs e)
    at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
    at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message& m)
    at System.Windows.Forms.ButtonBase.WndProc(Message& m)
    at System.Windows.Forms.Button.WndProc(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


    This does not happen when the plugin is not installed.

    Any ideas?

    Thanks
    Simon
     

    gamejester

    Retired Team Member
  • Premium Supporter
  • May 13, 2007
    418
    37
    Home Country
    United Kingdom United Kingdom
    gamejester,

    Looks really good! Regarding Still To Do: 6. Get movies folder to work, if the option is selected it will take the movie name from the folder and treat the content of the folder as the movie files and cover art.

    Solis66 made some mods that worked quite well: https://forum.team-mediaportal.com/...-scan-folders-instead-files-31794/index7.html

    Perhaps you could incorporate his work into your changes? I asked him to add playing movie file inside a folder instead of drilling into the folder when folder is selected but it's currently broken for iso, img files that need to be mounted via daemontools. I believe he sent me the source code to his plugin, but I'll have to look for it.

    Sounds useful, it you find it send it over.
     

    Users who are viewing this thread

    Top Bottom