Problem with IMDB provider

Are you missing your favourite movie site?

Problem with IMDB provider

Postby Dolu » Thu Sep 11, 2008 2:56 pm

Hello,

Found error when looking for "28 semaines plus tard" (28 weeks later) with IMDB Provider (startindex can't be less than 0. Parameter name : startIndex).
When using "akas.imdb.com", it takes me directly to the movie.
Last edited by Dolu on Mon Jun 29, 2009 1:29 pm, edited 1 time in total.
TViXiE needs you ! You find it useful ? please consider donating to the project at http://www.tvixie.com/
Dolu
Team Member
Team Member
 
Posts: 478
Joined: Wed Sep 10, 2008 8:13 pm
Location: Paris, France

{ SO_SELECT }

Re: Problem with IMDB provider

Postby joma » Mon Sep 15, 2008 3:21 pm

Dolu wrote:Hello,

Found error when looking for "28 semaines plus tard" (28 weeks later) with IMDB Provider (startindex can't be less than 0. Parameter name : startIndex).
When using "akas.imdb.com", it takes me directly to the movie.

The IMDB provider was the first provider I wrote, all the other ones after IMDB I used regex to parse the page.
I will re-do the IMDB parser to use Regex instead.
To help continue the development and support of TViXiE please consider donating to the project - Click to Donate
joma
Development Team Leader
Development Team Leader
 
Posts: 770
Joined: Thu Aug 28, 2008 9:15 pm
Location: Sweden

Re: Problem with IMDB provider

Postby joma » Wed Sep 24, 2008 10:45 am

The IMDB provider have been re-written to use regex instead and is now working again. Available in version 0.9.4
joma
Development Team Leader
Development Team Leader
 
Posts: 770
Joined: Thu Aug 28, 2008 9:15 pm
Location: Sweden

Re: Problem with IMDB provider

Postby Riderkz » Wed Dec 31, 2008 11:23 am

its again problem with imdb - no info found
Riderkz
 
Posts: 11
Joined: Thu Nov 20, 2008 2:34 pm

Re: Problem with IMDB provider

Postby joma » Wed Dec 31, 2008 2:00 pm

Riderkz wrote:its again problem with imdb - no info found

I'll have a look at it. :)
0.9.8.0 is coming soon.....
To help continue the development and support of TViXiE please consider donating to the project - Click to Donate
joma
Development Team Leader
Development Team Leader
 
Posts: 770
Joined: Thu Aug 28, 2008 9:15 pm
Location: Sweden

Re: Problem with IMDB provider

Postby fdt » Tue Feb 24, 2009 11:35 am

Hi joma,

I am currently working on several movie providers focusing on french.imdb.com to be able to get the IMDB rating when searching for international movies with titles translated in French. It appears that there is a bug in your imdb provider regarding the directors list. The regex returns nothing when the movie has mutiple directors.

For example, The Matrix. The regex you are using is:
Code: Select all
<h5>Director:</h5>.*\\n<a href=\"/name/nm\\d{7}/\">(.*?)</a>
is not correct because when a film has multiple directors the text is *Directors".

FYI using the following regexs works for us and french imdb for movies with single or multiple directors:
Code: Select all
<div\sid="director-info"\sclass="info">\s*<h5>.*:</h5>\s*(?<1>.*?)\s*</div>
to get the directors string then
Code: Select all
<a\shref="/name/nm\d{7}/">(?<1>.*?)</a>
to get each director from the previous string.

Regards.
fdt
 
Posts: 16
Joined: Mon Sep 01, 2008 10:41 pm

Re: Problem with IMDB provider

Postby Dolu » Tue Feb 24, 2009 2:17 pm

Hello fdt,

Maybe you could take a look at those ones :
MyMovieProvider
with
[intl] akas.imdb.com (v1.0) / 2009-02-24

I'm not using your regexp but it seems to work.

Dolu ;)
TViXiE needs you ! You find it useful ? please consider donating to the project at http://www.tvixie.com/
Dolu
Team Member
Team Member
 
Posts: 478
Joined: Wed Sep 10, 2008 8:13 pm
Location: Paris, France

Re: Problem with IMDB provider

Postby joma » Thu Feb 26, 2009 10:59 pm

fdt wrote:Hi joma,

I am currently working on several movie providers focusing on french.imdb.com to be able to get the IMDB rating when searching for international movies with titles translated in French. It appears that there is a bug in your imdb provider regarding the directors list. The regex returns nothing when the movie has mutiple directors.

For example, The Matrix. The regex you are using is:
Code: Select all
<h5>Director:</h5>.*\\n<a href=\"/name/nm\\d{7}/\">(.*?)</a>
is not correct because when a film has multiple directors the text is *Directors".

FYI using the following regexs works for us and french imdb for movies with single or multiple directors:
Code: Select all
<div\sid="director-info"\sclass="info">\s*<h5>.*:</h5>\s*(?<1>.*?)\s*</div>
to get the directors string then
Code: Select all
<a\shref="/name/nm\d{7}/">(?<1>.*?)</a>
to get each director from the previous string.

Regards.

Thanx! I've implemented your regex into the IMDB provider and it works like a sharm. ;)
The new IMDB provider will be available in the release of 0.9.8.0.
To help continue the development and support of TViXiE please consider donating to the project - Click to Donate
joma
Development Team Leader
Development Team Leader
 
Posts: 770
Joined: Thu Aug 28, 2008 9:15 pm
Location: Sweden


Return to Movie Info Providers

Who is online

Users browsing this forum: No registered users and 0 guests