Stats
This commit is contained in:
@@ -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');
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user