Hi again,

I noticed while searching for "Family Guy" using the http access method that 
we get the title returned correctly but the wrong imdbID.

For example;

Family Guy - 0888819

should be;

Family Guy - 0182576

This looks like it is because on the search results page they have added a 
link to the latest episode in the same li tag and the code grabs the title 
but uses last link that was seen in the li to get the id.

My quick hack to fix it was to add a check to line 198 of searchMovieParser.py 
to check that the link doesn't end with a / (it looks like the latest episode 
link is the only one which has this).

The line then becomes;

if link and link.lower().startswith('/title') and not link.endswith('/'):

I'm sure there is a better way to fix this but I don't know the code well 
enough yet :)

Cheers,

hads

-- 
http://nicegear.co.nz
New Zealand's VoIP supplier

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Imdbpy-devel mailing list
Imdbpy-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/imdbpy-devel

Reply via email to