Browse Source

Attempt to fix radarr v2 and v3 image issue again

CauseFX 6 years ago
parent
commit
97828a09d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      api/functions/homepage-connect-functions.php

+ 1 - 1
api/functions/homepage-connect-functions.php

@@ -1682,7 +1682,7 @@ function getRadarrCalendar($array, $number, $url)
 			$banner = "/plugins/images/cache/no-np.png";
 			$banner = "/plugins/images/cache/no-np.png";
 			foreach ($child['images'] as $image) {
 			foreach ($child['images'] as $image) {
 				if ($image['coverType'] == "banner" || $image['coverType'] == "fanart") {
 				if ($image['coverType'] == "banner" || $image['coverType'] == "fanart") {
-					if (strpos($banner, '://') === false) {
+					if (strpos($image['url'], '://') === false) {
 						$imageUrl = $image['url'];
 						$imageUrl = $image['url'];
 						$urlParts = explode("/", $url);
 						$urlParts = explode("/", $url);
 						$imageParts = explode("/", $image['url']);
 						$imageParts = explode("/", $image['url']);