MediaPortal Forums HTPC/MediaCenter

Go Back   MediaPortal Forum » General Forums » Jobs/Tasks @ MediaPortal » Movie Info Grabbers


Movie Info Grabbers Post new or updated grabbers here. The team will integrate them into the update feature.

Reply
 
Thread Tools Display Modes
Old 2007-07-29, 22:02   #1 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 28
Posts: 349
Thanks: 7
Thanked 58 Times in 23 Posts

Country:

My System

Improvement Suggestion - Done 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

Last edited by dukus; 2007-07-29 at 22:10.
dukus is offline   Reply With Quote
This User Say Thank You:
Old 2007-07-29, 22:14   #2 (permalink)
MP Donator
 
piranha's Avatar
 
Join Date: Sep 2005
Posts: 340
Thanks: 15
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: 28
Posts: 349
Thanks: 7
Thanked 58 Times in 23 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 offline   Reply With Quote
Old 2007-08-01, 20:12   #4 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 28
Posts: 349
Thanks: 7
Thanked 58 Times in 23 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
Attached Files
File Type: zip IMdbScriptEnginetest.ZIP (14.1 KB, 120 views)
dukus is offline   Reply With Quote
Old 2007-08-01, 22:12   #5 (permalink)
Retired Team Member
 
mzemina's Avatar
 
Join Date: Feb 2005
Location: Ft Smith, AR
Posts: 2,040
Thanks: 34
Thanked 12 Times in 12 Posts

Country:


Default

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

Mike
__________________
mzemina is offline   Reply With Quote
Old 2007-08-01, 22:14   #6 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 28
Posts: 349
Thanks: 7
Thanked 58 Times in 23 Posts

Country:

My System

Default

Yes, i have two it is in SVN in scripts\imdb\ folder
dukus is offline   Reply With Quote
This User Say Thank You:
Old 2007-08-02, 03:46   #7 (permalink)
MP Donator
 
piranha's Avatar
 
Join Date: Sep 2005
Posts: 340
Thanks: 15
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: 28
Posts: 349
Thanks: 7
Thanked 58 Times in 23 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 offline   Reply With Quote
Old 2007-08-02, 22:08   #9 (permalink)
Portal Developer
 
Join Date: Jan 2006
Age: 28
Posts: 349
Thanks: 7
Thanked 58 Times in 23 Posts

Country:

My System

Default

I think fix this problem, need some confirmation
dukus is offline   Reply With Quote
Old 2007-08-02, 22:17   #10 (permalink)
MP Donator
 
piranha's Avatar
 
Join Date: Sep 2005
Posts: 340
Thanks: 15
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
grabbing, imdb, script, support

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 Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
IMDB Grabber for german.imdb.com / deutsche IMDB mmf1981 Movie Info Grabbers 8 2008-10-21 15:42
IMDB & Poster Grabber v1.3 Datenshi Plugins 7 2008-09-23 11:49
IMDB Grabber for CSFD ... www.csfd.cz (czech alternative for IMDB) CXI Improvement Suggestions 0 2008-01-29 14:50
MyVidoes - Show IMDB info by default? NickSE General Support 1 2007-12-31 04:39
IMDB info during playback only if played thru IMDB info deebo The old Bugreport Forum 0 2006-07-20 22:20


All times are GMT +1. The time now is 20:14.


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