Prefer fanart.tv cover over trakt, update PHPDOC comment for movieSummary function.

This commit is contained in:
DariusIII
2015-08-16 21:56:33 +02:00
parent efaffbb8b5
commit c63ab784e7
2 changed files with 8 additions and 7 deletions
+4 -4
View File
@@ -654,11 +654,11 @@ class Film
$mov['imdbid'] = $imdbId;
$mov['tmdbid'] = (!isset($tmdb['tmdbid']) || $tmdb['tmdbid'] == '') ? 0 : $tmdb['tmdbid'];
// Prefer TRAKT cover over Fanart.tv, Fanart.tv over TMDB and TMDB over IMDB.
if ($this->checkVariable($trakt['cover'])) {
$mov['cover'] = $this->releaseImage->saveImage($imdbId . '-cover', $trakt['cover'], $this->imgSavePath);
} else if ($this->checkVariable($fanart['cover'])) {
// Prefer Fanart.tv cover over TRAKT, TRAKT over TMDB and TMDB over IMDB.
if ($this->checkVariable($fanart['cover'])) {
$mov['cover'] = $this->releaseImage->saveImage($imdbId . '-cover', $fanart['cover'], $this->imgSavePath);
} else if ($this->checkVariable($trakt['cover'])) {
$mov['cover'] = $this->releaseImage->saveImage($imdbId . '-cover', $trakt['cover'], $this->imgSavePath);
} else if ($this->checkVariable($tmdb['cover'])) {
$mov['cover'] = $this->releaseImage->saveImage($imdbId . '-cover', $tmdb['cover'], $this->imgSavePath);
} else if ($this->checkVariable($imdb['cover'])) {
+4 -3
View File
@@ -81,9 +81,10 @@ class TraktTv
* Accept a title (the-big-lebowski-1998), a IMDB id, or a TMDB id.
*
* @param string $movie Title or IMDB id.
* @param string $type imdbID: Return only the IMDB ID (returns string)
* full: Return all extended properties (minus images). (returns array)
* images: Return extended images properties (returns array)
* @param string $type imdbID: Return only the IMDB ID (returns string)
* full: Return all extended properties (minus images). (returns array)
* images: Return extended images properties (returns array)
* full,images: Return all extended properties (plus images). (returns array)
*
* @see http://docs.trakt.apiary.io/#reference/movies/summary/get-a-movie
*