From 345276a5bd1700d17bf7372e004b2b98a6b79c48 Mon Sep 17 00:00:00 2001 From: Chewbaka Date: Sat, 23 Mar 2019 17:28:34 +0100 Subject: [PATCH] Add art option to movie to use it in player next episode --- fuel/app/classes/controller/cover.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/fuel/app/classes/controller/cover.php b/fuel/app/classes/controller/cover.php index 85a1093..bd90c7a 100644 --- a/fuel/app/classes/controller/cover.php +++ b/fuel/app/classes/controller/cover.php @@ -16,13 +16,16 @@ class Controller_Cover extends Controller_Home $height = Input::get('height'); $thumb = Input::get('thumb') ?: null; + $art = Input::get('art') ?: null; $movie = Model_Movie::find_by_pk($movie_id); if(!$movie) throw new FuelException(); - if(!$thumb) + if($thumb === null && $art) + $images = $movie->getArt($width, $height); + else if($thumb === null && $art === null) $images = $movie->getCover($width, $height); else $images = $movie->getThumb($width, $height);