* @version $Id: add_recommended_movies.php,v 1.8 2014/02/25 21:22:00 kec2 Exp $ */ // move out of contrib for includes chdir('..'); require_once './core/functions.php'; require_once './engines/engines.php'; // since we don't need session functionality, use this as workaround // for php bug #22526 session_start/popen hang session_write_close(); ?> Find Movie Recommendations {$video['title']} ($engine Id {$video['imdbID']})
"; $data = engineGetRecommendations($video['imdbID'], $required_rating, $required_year, 'imdb'); if (!empty($CLIENTERROR)) { echo $CLIENTERROR."
"; continue; } if (empty($data)) { // sometimes there are no recommendations for a movie. This is true for Underworld: imdbId 0320691 echo "No recommendations for {$video['title']}.

"; continue; } echo ''; echo " "; echo " "; echo " "; foreach ($data as $recommended) { $available = (count(runSQL("SELECT * FROM ".TBL_DATA." WHERE imdbID like '%".$recommended['id']."'")) > 0); if (!$available) { $recommended['title'] = ''.$recommended['title'].' '; } echo ""; echo ""; echo ""; echo ""; echo ""; echo ""; if ($download && !$available) engineGetData($recommended['id']); } echo "
Title Year Rating Id
{$recommended['title']}{$recommended['year']}{$recommended['rating']}{$recommended['id']}
"; echo "
"; } } else { ?>
Limit to movies to no earlier then
At least require this rating