[Approved] IMDB.com (default info grabber) (2 Viewers)

dukus

Portal Pro
January 20, 2006
783
748
44
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:
  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.
 

piranha

MP Donator
  • Premium Supporter
  • September 17, 2005
    370
    10
    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.
     

    dukus

    Portal Pro
    January 20, 2006
    783
    748
    44
    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
     

    mzemina

    Retired Team Member
  • Premium Supporter
  • February 23, 2005
    2,065
    14
    Tulsa, OK
    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
     

    piranha

    MP Donator
  • Premium Supporter
  • September 17, 2005
    370
    10
    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?
     

    Attachments

    • Terminator 3_ Rise of the MachinesL ORIGINAL.jpg
      Terminator 3_ Rise of the MachinesL ORIGINAL.jpg
      56 KB
    • Terminator 3_ Rise of the MachinesL.jpg
      Terminator 3_ Rise of the MachinesL.jpg
      19.6 KB
    • Terminator 3_ Rise of the Machines.jpg
      Terminator 3_ Rise of the Machines.jpg
      4 KB

    dukus

    Portal Pro
    January 20, 2006
    783
    748
    44
    Home Country
    Romania Romania
    It is a bug in My Videos when downloading the first image. Try to fix it in next days.
     

    dukus

    Portal Pro
    January 20, 2006
    783
    748
    44
    Home Country
    Romania Romania
    I think fix this problem, need some confirmation
     

    Users who are viewing this thread

    Top Bottom