MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » Development » Submit: Movie Info Grabbers


Reply
 
LinkBack Thread Tools Display Modes
Old 2007-07-29, 22:02   #1 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 30
Posts: 636
Thanks: 52
Thanked 204 Times in 85 Posts

Country:

My System

Default IMDB.com (default info grabber)

In latest SVN i add support for scripting using CS-Script from http://www.members.optusnet.com.au/~...ilo/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.

Last edited by chefkoch; 2009-02-03 at 16:41..
dukus is online now   Reply With Quote
2 Users Thank You:
Old 2007-07-29, 22:14   #2 (permalink)
MP Donator
 
piranha's Avatar
 
Join Date: Sep 2005
Posts: 370
Thanks: 21
Thanked 10 Times in 10 Posts

My System

Default

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.
__________________
After all, computers crash, people die, relationships fall apart. The best we can do is breath and reboot.

Last edited by piranha; 2007-07-29 at 22:20..
piranha is offline   Reply With Quote
Old 2007-07-30, 16:41   #3 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 30
Posts: 636
Thanks: 52
Thanked 204 Times in 85 Posts

Country:

My System

Default

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
dukus is online now   Reply With Quote
Old 2007-08-01, 20:12   #4 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 30
Posts: 636
Thanks: 52
Thanked 204 Times in 85 Posts

Country:

My System

Default

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
dukus is online now   Reply With Quote
Old 2007-08-01, 22:12   #5 (permalink)
Retired Team Member
 
mzemina's Avatar
 
Join Date: Feb 2005
Location: Tulsa, OK
Posts: 2,064
Thanks: 43
Thanked 13 Times in 13 Posts

Country:


Default

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

Mike
__________________
Boris: Hey, Natasha, you never gonna believe who's in there!
Natasha: Is Peabody and Sherman?
Boris: Silly girl! Is moose and squirrel.
mzemina is offline   Reply With Quote
Old 2007-08-01, 22:14   #6 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 30
Posts: 636
Thanks: 52
Thanked 204 Times in 85 Posts

Country:

My System

Default

Yes, i have two it is in SVN in scripts\imdb\ folder
dukus is online now   Reply With Quote
These User Thank You:
Old 2007-08-02, 03:46   #7 (permalink)
MP Donator
 
piranha's Avatar
 
Join Date: Sep 2005
Posts: 370
Thanks: 21
Thanked 10 Times in 10 Posts

My System

Question

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/gr...l/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 Thumbnails
IMDB.com (default info grabber)-terminator-3_-rise-machinesl-original.jpg   IMDB.com (default info grabber)-terminator-3_-rise-machinesl.jpg  
Attached Images
 
__________________
After all, computers crash, people die, relationships fall apart. The best we can do is breath and reboot.

Last edited by piranha; 2007-08-02 at 11:26..
piranha is offline   Reply With Quote
Old 2007-08-02, 19:52   #8 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 30
Posts: 636
Thanks: 52
Thanked 204 Times in 85 Posts

Country:

My System

Default

It is a bug in My Videos when downloading the first image. Try to fix it in next days.
dukus is online now   Reply With Quote
Old 2007-08-02, 22:08   #9 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 30
Posts: 636
Thanks: 52
Thanked 204 Times in 85 Posts

Country:

My System

Default

I think fix this problem, need some confirmation
dukus is online now   Reply With Quote
Old 2007-08-02, 22:17   #10 (permalink)
MP Donator
 
piranha's Avatar
 
Join Date: Sep 2005
Posts: 370
Thanks: 21
Thanked 10 Times in 10 Posts

My System

Default

I'll check in snv when it will be generated.
__________________
After all, computers crash, people die, relationships fall apart. The best we can do is breath and reboot.
piranha is offline   Reply With Quote
Reply

Bookmarks

Tags
default, grabber, imdbcom, info

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Rejected] IMDB Grabber for german.imdb.com / deutsche IMDB mmf1981 Submit: Movie Info Grabbers 11 2010-02-17 22:25
IMDB with AKA grabber bug in IMDB.csscript andyking watch/edit Videos 11 2010-01-28 18:51
video info grabber IMDB xvffx General Support 0 2009-11-17 22:27
MyVidoes - Show IMDB info by default? NickSE General Support 1 2007-12-31 04:39


All times are GMT +1. The time now is 15:38.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2 Protected by Akismet Blog with WordPress
Advertisement System V2.6 By   Branden