2011-02-11, 00:49
Some small changes. xbmc.php, line 295. I was getting a warning that index 0 didn't exist, so I changed it to this:
Also, in the example wall, I changed the code to this, that way I could track down what movies I needed images for, plus I didn't have a broken img tag:
Code:
public function __call($method, $args = null) {
if (array_key_exists(0,$args))
return $this->_xbmcJson->rpc($this->_name.".".$method, $args[0]);
return $this->_xbmcJson->rpc($this->_name.".".$method);
}
Also, in the example wall, I changed the code to this, that way I could track down what movies I needed images for, plus I didn't have a broken img tag:
Code:
//Display the "movie-wall"
foreach($movies as $movie) {
if (array_key_exists('thumbnail',$movie))
$moviesHTML .= "<img src=\"http://".$xbmcHost->url()."/".$xbmcJson->Files->Download($movie['thumbnail'])->path."\" width=\"104\" height=\"156\" title=\"".$movie['title']."\">";
}
$moviesHTML .= "<br><br><h3>Movies Without Thumbs</h3>";
foreach($movies as $movie) {
if (!array_key_exists('thumbnail',$movie))
$moviesHTML .= "<br>".$movie['title'];
}
$moviesHTML .= "<br><br><h3>Movies Without Fanart</h3>";
foreach($movies as $movie) {
if (!array_key_exists('fanart',$movie))
$moviesHTML .= "<br>".$movie['title'];
}