Browse Source

Resolve plex image issue (maybe?)

Cerothen 9 years ago
parent
commit
a2747cb2a0
1 changed files with 3 additions and 2 deletions
  1. 3 2
      image.php

+ 3 - 2
image.php

@@ -5,7 +5,7 @@ require_once("user.php");
 $image_url = $_GET['img'];
 $image_height = $_GET['height'];
 $image_width = $_GET['width'];
-$image_source = $_GET['source'];
+$image_source = (isset($_GET['source']) ? isset($_GET['source'] : 'plex');
 
 switch ($image_source) {
 	case 'emby':
@@ -27,6 +27,7 @@ switch ($image_source) {
 			echo "Invalid Emby Request";	
 		}
 		break;
+	case 'plex':
 	default:
 		$urlCheck = stripos(PLEXURL, "http");
 
@@ -46,4 +47,4 @@ switch ($image_source) {
 			echo "Invalid Plex Request";	
 		}
 		break;
-}
+}