Procházet zdrojové kódy

fix emby connect error
work on emby api issue
update light theme, may get rid of dark/light and let theme deal with it.

causefx před 8 roky
rodič
revize
eefd8435ed

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

@@ -567,11 +567,11 @@ function embyConnect($action, $key = null, $skip = false)
 								break;
 							}
 						}
+						$url = $url . '/Users/' . $userId . '/Items/Latest?EnableImages=false&Limit=' . $GLOBALS['homepageRecentLimit'] . '&api_key=' . $GLOBALS['embyToken'] . ($showPlayed ? '' : '&IsPlayed=false');
 					}
 				} catch (Requests_Exception $e) {
 					writeLog('error', 'Emby Connect Function - Error: ' . $e->getMessage(), 'SYSTEM');
 				};
-				$url = $url . '/Users/' . $userId . '/Items/Latest?EnableImages=false&Limit=' . $GLOBALS['homepageRecentLimit'] . '&api_key=' . $GLOBALS['embyToken'] . ($showPlayed ? '' : '&IsPlayed=false');
 				break;
 			case 'metadata':
 				$skip = true;

Rozdílová data souboru nebyla zobrazena, protože soubor je příliš velký
+ 0 - 0
css/light.css


+ 2 - 1
js/functions.js

@@ -2516,7 +2516,8 @@ function buildStream(array, type){
 }
 function buildRecent(array, type){
 	var recent = (typeof array.content !== 'undefined') ? true : false;
-	var movie = (recent) ? (array.content.filter(p => p.type == "movie").length > 0 ? true : false) : false;
+    array.content = (recent) ? Object.values(array.content) : false;
+    var movie = (recent) ? (array.content.filter(p => p.type == "movie").length > 0 ? true : false) : false;
 	var tv = (recent) ? (array.content.filter(p => p.type == "tv").length > 0 ? true : false) : false;
 	var video = (recent) ? (array.content.filter(p => p.type == "video").length > 0 ? true : false) : false;
 	var music = (recent) ? (array.content.filter(p => p.type == "music").length > 0 ? true : false) : false;

Některé soubory nejsou zobrazeny, neboť je v těchto rozdílových datech změněno mnoho souborů