mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-09-02 11:18:56 +00:00
Prefer fanart.tv cover over trakt, update PHPDOC comment for movieSummary function.
This commit is contained in:
@@ -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'])) {
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user