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

gamejester

Retired Team Member
  • Premium Supporter
  • May 13, 2007
    418
    37
    Home Country
    United Kingdom United Kingdom
    I have made some changes to the Movies part of the core, these include:

    NOW HAS EASY INSTALLER and Un-INSTALLER FOR EASY TESTING!

    Requireement:
    You need to be running MP v1.0 RC2

    v1.
    1. Provided a GUI for the user to choose which cover searches that want to use
    2. Enhanced the accuracy of cover matching in the existing IMPAwards search
    3. Added a movie-xml cover search
    4. Added a local File cover match (takes the name of your movie file then searches for a .jpg)
    5. Fixed a few bugs in the Movies configuration section
    6. make the year matching less strick for (xxxx), also take (xxxx.i) or anything in bracket, so just (xxxx is important.

    v2.
    1. Added the extraction of the year from the file name and pass it to the csscripts for more accurate film matching.
    \MovieName (nnnn).xxx - where nnnn = 4 digit year

    v3.
    1. All searches both inbuilt and csscript will now fall back and use YOUR chosen covers if they do not find an exact match (no more low quality Amazon covers of the wrong movie!)
    2. All high res covers are now viewable within the MP GUI, so you can use your remote to select the best cover.

    v4.
    Anchored new controls in GUI to make it look pretty when re-sizing.
    Enhanced the year matching in movie name so it matches on (xxxx to aid people with formats like (xxxx-i)
    movie-xml.csscript - removed the cover search section as it is no longer required.

    v5.
    moviexml.cscript - removes escape chars if returned in error from the site (things like \' or \")
    BUG fixed - if you tick do not search for actors or skip files in db; these settings are now saved
    BUG UNKOWN - if a field as no data it is now left blank and is not populated with UNKNOWN
    99.9% auto movie matching with moviexml (but will also enhance all grabbers) - the fuzzy logic used to make a best guess of the movie you want from list returned my the grabber now makes a much better guess.
    IMDB search - the inbuilt one and the csscript version now have no cover search so they will use what ever you specify in the config app.

    v6.
    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 ir returned.
    Scene file names auto passed if in this format
    this.is.the.name.of.the.move.1999.1080p.h.264.whatever.squigel.stuff.more.stuff.avi
    requires all dots as seperators and a year in the string

    v7.
    Fixed a bug introduced in v6 that caused an exception when you type a new movie in the config app over <new> and hit lookup.

    See change log for all the details.

    Attached are the code changes and the new binaries, if you want to test just copy them over your existing MP RC2 install (you might want to make up those files first!)

    The result is now a fast accurate cover search when you click the 'search for Images' button in the configuration utility on the Editor Coverart TAB.

    Still to Do:

    1. IMDB.cssearch. Refine to make use of the year field for better results matching.
    2. Add a refresh button in the MP gui to re-scan and add any new files.
    3. Update all csscripts to take year to look up movie.
    4. Possibly get rid of old inbuilt searches where newer csscript is available.
    5. When sorting movie list ignore "The" so they are not all grouped together.
    6. Get movies folder to work, if the option is slected it will take the movie name from the folder and treat the content of the folder as the movie files and cover art.
    7. User definable keyword filename removal. Like myTVseries, add a list of keywords the user can specify to remove from a file name when extracting the movie title.
    8. Sort by newest added in the config app, should be able to do this by the generated primary key number i guess, not need to add a date field to the db.
    9. support ofdb_xml.csscipt
    10. save settings when a user removes a cd or dvd drive from the list of folder.

    BUGS - not introduce by me, but I plan to fix them as part of this release! (just not had time yet)
    1. Wrog rating is shown for each movie in MP, it always displays the rating for the first movie in you datavase for all movies.
    2. moviemeter does not capture the rating properly
    3. all fields are not overwritten from one graber to the next, ie, if you get ratings from grabber IMDB if you do a refresh with moviexml which has no rating the original reating is shown insteasd of a blank field.

    BUGS - Existing that have been fixed
    1. If you uncheck 'Automatically select the nearest match' then the list of internet database searches does not get loaded into the listview when the configuration app loads.
    2. Local files where not returned in the search form within MP GUI
    3. When a movie is not matched you get a pop up where you can type the name of the movie, but you coult not press Enter to continue you had to move the mouse and click find - this is now fixed.
    4. csscript files when added to list are not removed from the drop down on next load of the config GUI.
    5. actor details are not downloaded unless the automatically select movie checkbox is checked? (not tested this but it should be fixed as a by product of another fix)


    BUGS - Introduced my me
    1. Manually adding a new movie in the db through the config app - if you have select a cover search of local file or local dir it crashes. Need to trap null strings in that file search section.

    v6. had some pretty involving logic changes so there may be some, please test with as many different file name combos and in different places in the app as possible.
     

    Attachments

    • screen_shot.jpg
      screen_shot.jpg
      59.1 KB

    s7oneyuk

    Portal Member
    December 20, 2007
    24
    11
    Home Country
    United Kingdom United Kingdom
    can you also fix the fact that the actor details are not downloaded unless the automatically select checkbox is checked?
     

    2BitSculptor

    Super Moderator
  • Team MediaPortal
  • January 23, 2008
    1,951
    498
    South Central Wisconsin
    Home Country
    United States of America United States of America
    I frequently have to do a google image search for covers not found in the i-databases. How feasible is it to boot google (or some search engine) and select an image manually, but have it added automatically to my Movie database. (maybe a watch-folder type of thing that grabs an image downloaded to a particular folder)

    Probably too much to complicated. :(

    Thanks

    Chuck
     

    gamejester

    Retired Team Member
  • Premium Supporter
  • May 13, 2007
    418
    37
    Home Country
    United Kingdom United Kingdom
    s7oneyuk - was not aware of this one, will add it to the bug list and try to fix it.

    2BitSculptor - that sounds pretty major, and still very manual, this is designed to run for either the config app or from within MP. What is does do now is match local files, so if you find the cover art so you have to choices now:

    1. Put each movie in its own folder (or the ones with local cover art at least) then add your .jpg files here and select localFolder as a cover search option, they will then be picked up and added to your database.

    2. If all movies are in teh same folder name your cover art the same name as the movie, ie if you have batman.avi put a file in the same folder called batman.jpg and select LocalFile as a coversearch option and it will auto add to your database.
     

    gamejester

    Retired Team Member
  • Premium Supporter
  • May 13, 2007
    418
    37
    Home Country
    United Kingdom United Kingdom
    Updated v2 uploaded.

    This adds the ability to extract the year from a file name and pass it to the csscript engine for more accurate movie searching,
     

    gamejester

    Retired Team Member
  • Premium Supporter
  • May 13, 2007
    418
    37
    Home Country
    United Kingdom United Kingdom
    updated v3
    Now all search engines if they do not find a cover will fall back to use the cover searches you have specified in the config util, whether that be a local file or an internet searched one. Also when in MP GUI app it will also perform searches based on your choice; so if you highlight a movie and select IMDB it will populate a list of covers for you to flick through with your remote of the type you want.

    This is now working really well. Matches for me are near 100% with the addtional refinement of taking the year from the file name + all my covers are high res first time and i can thumb through ALL high res covers from within MP with my remote....................nice!
     

    roopert

    Portal Pro
    June 3, 2008
    80
    4
    Home Country
    Belgium Belgium
    Doesn't work for me!?
    Overwrited all the files and nothing happened. And now I can't get the submenu's in MP. Did I miss something?
     

    maiky

    MP Donator
  • Premium Supporter
  • August 3, 2008
    70
    2
    Home Country
    Sweden Sweden
    Doesn't work for me!?
    Overwrited all the files and nothing happened. And now I can't get the submenu's in MP. Did I miss something?

    Hmm, got similar problems, no im not able to start a movie or get the contex menu to show =/
    I restored all files but i still got the same problem!
     

    roopert

    Portal Pro
    June 3, 2008
    80
    4
    Home Country
    Belgium Belgium
    Hmm, got similar problems, no im not able to start a movie or get the contex menu to show =/
    I restored all files but i still got the same problem!

    Confirmed that! Any help please...
     

    Users who are viewing this thread

    Top Bottom