Open GoogleCodeExporter opened 9 years ago
I have the same issue. When you search for "The Day the Earth Stood Still" IMDB
API
returns no results.
When you enter the query manually in e.g. Firefox:
http://www.imdb.com/find?s=all&q=The+Day+the+Earth+Stood+Still
you DO get results.
The resulting HTML page contains no results at all, which is strange, because
the
query is correct.
It only happens with some movies.
At first I thought it was related to the missing '+' characters not inserted by
the
code, but that doesn't seem to matter. So if you "hack" the code to do:
"http://www.imdb.com/find?s=all&q=The+Day+the+Earth+Stood+Still"
instead of:
"http://www.imdb.com/find?s=all&q=The Day the Earth Stood Still"
for the URL string the same result is returned.
I'm running W7 x64 btw.
Original comment by loek.fre...@gmail.com
on 22 Feb 2010 at 2:05
[deleted comment]
in IMDB.CS
I changed line 134ish
from
pat = @"Popular Titles(.*?)<p>";
to
pat = @"Popular Titles(.*?)</p>(?!.*</p>)";
This fixed many search errors for me :) Let it be known I am not very great
with regular expressions so this may introduce other issues.
--Beaniiman
Original comment by Beanii...@gmail.com
on 8 Oct 2010 at 6:58
Original issue reported on code.google.com by
ihs34...@gmail.com
on 6 Aug 2009 at 2:48