This commit is contained in:
2015-10-21 15:19:35 +02:00
parent 4f8a382b51
commit 0b4efeb2ed
7 changed files with 622 additions and 412 deletions

View File

@@ -53,4 +53,10 @@ class Film extends Eloquent {
}
public function getPoster() {
$tmdb = new TMDb(Config::get('constants.tvdb.apikey'), 'de', TRUE);
$tmovie = $tmdb->getMovie($this->tvdbid);
return $tmdb->getImageUrl($tmovie['poster_path'], TMDb::IMAGE_POSTER, 'w342');
}
}