causefx 8 лет назад
Родитель
Сommit
d1498ea9da
1 измененных файлов с 3 добавлено и 3 удалено
  1. 3 3
      functions.php

+ 3 - 3
functions.php

@@ -523,12 +523,12 @@ function resolveEmbyItem($address, $token, $item, $nowPlaying = false, $showName
 	
 	// Get Item Details
 	$itemDetails = json_decode(file_get_contents($address.'/Items?Ids='.$item['Id'].'&api_key='.$token),true)['Items'][0];
-	if (substr_count(EMBYURL, ':') == 2) {
+	/*if (substr_count(EMBYURL, ':') == 2) {
 		$URL = "http://app.emby.media/itemdetails.html?id=".$itemDetails['Id'];
 	}else{
 		$URL = EMBYURL."/web/itemdetails.html?id=".$itemDetails['Id'];
-	}
-	//$URL = "http://app.emby.media/itemdetails.html?id=".$itemDetails['Id'];
+	}*/
+	$URL = EMBYURL."/web/itemdetails.html?id=".$itemDetails['Id'];
 	switch ($itemDetails['Type']) {
 		case 'Episode':
 			$title = (isset($itemDetails['SeriesName'])?$itemDetails['SeriesName']:"");