Will not carry over Runtime, Ratings,etc
Status: Beta
Brought to you by:
talloula
Everything work pretty good. Here are the problems I am
having (maybe bugs but not sure):
If the search only has one Result on IMDB it phpmovielib
times out.
When adding through IMDB it will Not grab the Runtime,
Rating (PG, R, PG-13), Language.
When adding a movie regardless of what I select for
Availability, Language, comments, it does not save
those, until I edit the movie and update it.
I am Running:
IIS5
WIN2K Server
PHP
mySQL
Logged In: NO
Hi,
This response is a bit out of date, but I thought it might
be useful for you. The 'match one title' problem with IMDB
has been around in DVDDBP for a long time.
It occurs because IMDB sends a redirect Location: header
back. My suggestion is to use Snoopy.
An example get url function using Snoopy is:
function readurl($url)
{
include('Snoopy.class.inc');
}
The phpmovielib_functions.php function
phpmovielib_parse($id) could be modified thus: (The
commented out code is the original code)
$url = "http://us.imdb.com/Plot?".$id;
//$file = fopen($url, "r");
//$read = fread($file, 80000);
//fclose($file);
$read = readurl($url);
$url = "http://us.imdb.com/Title?".$id;
//$file = fopen($url, "r");
//$read2 = fread($file, 80000);
fclose($file);
$read2 = readurl($url);
Snoopy automatically follows Location: redirects, and so the
error where an exact match times out, will not be a problem
for you anymore.
Snoopy is a good library.
Cheers