[Approved] - IMDB.com (default info grabber)

Discussion in 'Submit: Movie Info Grabbers' started by dukus, July 29, 2007.

    • Team MediaPortal

    dukus Development Group

    In latest SVN i add support for scripting using CS-Script from http://www.members.optusnet.com.au/~olegshilo/index.html
    in this may find some example of scripts, but basically every script are a standalone class.

    Only one script included, it is for imdb.com grabbing, the code is same like used in mediaportal for grabbing.

    For making a new grabber need to be implement the next class:
    Code (text):
      public interface IIMDBScriptGrabber
      {
       // get the list on find films specified by the title
        void FindFilm(string title, int limit, ArrayList elements);
       // get movie detail from a url
        bool GetDetails(IMDB.IMDBUrl url, ref IMDBMovie movieDetails);
       // name of script
        string GetName();
       // language of grabbed site
        string GetLanguage();
      }
     
    then copy the new script in scripts\imdb\ directory with csscript extension
    in configuration will appear in available databases with file name with you save it





    Version history:
    • 2009-01-06 posted by Pirppuli here
    • 2009-01-30 posted by Pirppuli here
    • There may be older ones, which are not listed here.

    The green highlighted file is available via Update in MediaPortal Configuration.
    • Like Like x 2
    • Premium Supporter

    piranha MP Donator

    Would it be an easy task to implement http://www.gaz1.com/movdb/ site for movie scraping?
    Although the main interfaces are returning XML results, and it would be much better to parse XML, scraping them would also work.
    At least here we would be able easily obtain hi-res covers.

    I am not sure if you used the MP TV Series plugin, it uses thetvdb.com for it's database source.
    The database I mentioned at the beginning of this post, is basically adapted copy of the TV series version of the database.

    Having this as a proper video data source would be a blast.
    • Team MediaPortal

    dukus Thread Starter Development Group

    To make a grabber you may use any class implemented in .net 2 or mediaportal (for mediaportal need to use all namspace specification like <MediaPortal.GUI.Library.Log.Error("bla bla")>) or define new one in script, but some C# knowledges needed, in this way you or somebody able to make grabber for any site.

    In this week i try to make more grabbers, a template file and some documentation in wiki
    • Team MediaPortal

    dukus Thread Starter Development Group

    I make a new grabber for http://www.gaz1.com/movdb/ but is more a example.

    Write a tester program for scrips, copy in same directory with mediaportal
    • Team MediaPortal

    mzemina Retired Team Member

    Dukus - Do you have any sample scripts we can test out, so I can start to understand?

    Mike
    • Team MediaPortal

    dukus Thread Starter Development Group

    Yes, i have two it is in SVN in scripts\imdb\ folder
    • Like Like x 1
    • Premium Supporter

    piranha MP Donator

    Hi Dukus,

    thanks a lot for adding the new source.
    I think thanks to that we have found a reason why the coverart downloaded is such bad quality.
    I just used the new grabber to add one movie to the database, and I was surprised seeing the coverart being low res.
    I added Terminator 3, and the coverart for it is:
    http://www.gaz1.com/movdb/banners/graphical/81503-g3.jpg

    Downloaded coverart you can see below:
    Original coverart file on the movdb: 419x619 (57355 bytes)
    Downloaded:
    Large: Terminator3L.jpg 344x512 (20034 bytes) - very bad quality
    Thumb: Terminator3.jpg 86x128 (4118 bytes)

    So obviously there is some conversion process in between.
    During this conversion we are loosing the image quality very very badly.
    Is this something you can look at?

    Attached Files:

    • Team MediaPortal

    dukus Thread Starter Development Group

    It is a bug in My Videos when downloading the first image. Try to fix it in next days.
    • Team MediaPortal

    dukus Thread Starter Development Group

    I think fix this problem, need some confirmation
    • Premium Supporter

    piranha MP Donator

    I'll check in snv when it will be generated.

Share This Page

Users Viewing Thread (Users: 0, Guests: 0)

Running the latest version?

V1.3.0 FINAL - released March 2013
Releasenews | Download
Changelog
 | Requirements
HTPC
Team-MediaPortal
 
About
Contact |  Press
Partners