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

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

  1. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    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):
    1.   public interface IIMDBScriptGrabber
    2.   {
    3.    // get the list on find films specified by the title
    4.     void FindFilm(string title, int limit, ArrayList elements);
    5.    // get movie detail from a url
    6.     bool GetDetails(IMDB.IMDBUrl url, ref IMDBMovie movieDetails);
    7.    // name of script
    8.     string GetName();
    9.    // language of grabbed site
    10.     string GetLanguage();
    11.   }
    12.  
    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
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. piranha
    • Premium Supporter

    piranha MP Donator

    Joined:
    September 17, 2005
    Messages:
    370
    Likes Received:
    10
    Ratings:
    +10 / 0
    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.
     
  4. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    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
     
  5. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    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
     
  6. mzemina
    • Premium Supporter

    mzemina Retired Team Member

    Joined:
    February 23, 2005
    Messages:
    2,065
    Likes Received:
    13
    Occupation:
    Project Manager
    Location:
    Tulsa, OK
    Ratings:
    +13 / 0
    Home Country:
    United States of America United States of America
    Dukus - Do you have any sample scripts we can test out, so I can start to understand?

    Mike
     
  7. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    Yes, i have two it is in SVN in scripts\imdb\ folder
     
    • Like Like x 1
  8. piranha
    • Premium Supporter

    piranha MP Donator

    Joined:
    September 17, 2005
    Messages:
    370
    Likes Received:
    10
    Ratings:
    +10 / 0
    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:

  9. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    It is a bug in My Videos when downloading the first image. Try to fix it in next days.
     
  10. dukus

    dukus Portal Pro

    Joined:
    January 20, 2006
    Messages:
    783
    Likes Received:
    370
    Ratings:
    +371 / 0
    Home Country:
    Romania Romania
    I think fix this problem, need some confirmation
     
  11. piranha
    • Premium Supporter

    piranha MP Donator

    Joined:
    September 17, 2005
    Messages:
    370
    Likes Received:
    10
    Ratings:
    +10 / 0
    I'll check in snv when it will be generated.
     
Loading...

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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!