Kaynağa Gözat

small edits

CauseFX 6 yıl önce
ebeveyn
işleme
ecd6dee1bc

+ 3 - 4
api/config/default.php

@@ -98,7 +98,7 @@ return array(
 	'rTorrentReverseSorting' => false,
 	'rTorrentCombine' => false,
 	'rTorrentDisableCertCheck' => false,
-	'homepageCalendarEnabled' => 'true',
+	'homepageCalendarEnabled' => false,
 	'homepageCalendarAuth' => '4',
 	'calendariCal' => '',
 	'homepagCustomHTMLoneEnabled' => false,
@@ -255,7 +255,7 @@ return array(
 	'unifiPassword' => '',
 	'unifiSiteName' => '',
 	'unifiCookie' => '',
-	'homepageUnifiEnabled' => 'false',
+	'homepageUnifiEnabled' => false,
 	'homepageUnifiAuth' => '1',
 	'homepageUnifiRefresh' => '600000',
 	'youtubeAPI' => '',
@@ -271,7 +271,6 @@ return array(
 	'homepageTautulliViewsAuth' => '1',
 	'homepageTautulliMiscAuth' => '1',
 	'homepageTautulliRefresh' => '60000',
-	'tautulliURL' => '',
 	'tautulliApikey' => '',
 	'tautulliLibraries' => true,
 	'tautulliTopMovies' => true,
@@ -280,7 +279,7 @@ return array(
 	'tautulliTopPlatforms' => true,
 	'tautulliPopularMovies' => true,
 	'tautulliPopularTV' => true,
-	'homepagePiholeEnabled' => 'false',
+	'homepagePiholeEnabled' => false,
 	'homepagePiholeAuth' => '1',
 	'homepagePiholeRefresh' => '10000',
 	'homepagePiholeCombine' => false,

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

@@ -2432,7 +2432,8 @@ function getTautulli()
 {
 	if ($GLOBALS['homepageTautulliEnabled'] && !empty($GLOBALS['tautulliURL']) && !empty($GLOBALS['tautulliApikey']) && qualifyRequest($GLOBALS['homepageTautulliAuth'])) {
 		$api = [];
-		$url = $GLOBALS['tautulliURL'] . '/api/v2?apikey=' . $GLOBALS['tautulliApikey'];
+		$url = qualifyURL($GLOBALS['tautulliURL']);
+		$url = $url . '/api/v2?apikey=' . $GLOBALS['tautulliApikey'];
 		try {
 			$homestatsUrl = $url . '&cmd=get_home_stats';
 			$homestats = Requests::get($homestatsUrl, [], []);

+ 3 - 3
api/functions/homepage-functions.php

@@ -2514,8 +2514,8 @@ function getHomepageList()
 				)
 			)
 		),
-    array(
-      'name' => 'Pi-hole',
+	    array(
+			'name' => 'Pi-hole',
 			'enabled' => true,
 			'image' => 'plugins/images/tabs/pihole.png',
 			'category' => 'Monitor',
@@ -2555,7 +2555,7 @@ function getHomepageList()
 					),
 				),
 			)
-    ),
+	    ),
 		array(
 			'name' => 'Tautulli',
 			'enabled' => true,

+ 1 - 0
js/functions.js

@@ -6382,6 +6382,7 @@ function homepageCalendar(timeout){
 	timeouts['calendar-Homepage'] = setTimeout(function(){ homepageCalendar(timeout); }, timeout);
 }
 function buildTautulliItem(array){
+    console.log(array);
     var cards = `
     <style>
     .homepage-tautulli-card .poster {