From c2a38a4847dfa9f561717cfc9858c275caa33876 Mon Sep 17 00:00:00 2001 From: RaindropsSys Date: Fri, 17 Nov 2023 23:25:54 +0100 Subject: Updated 14 files and added 2 files (automated) --- app/ui/listing.php | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) (limited to 'app/ui/listing.php') diff --git a/app/ui/listing.php b/app/ui/listing.php index d29b355..29a1bce 100644 --- a/app/ui/listing.php +++ b/app/ui/listing.php @@ -37,6 +37,27 @@ if (!$presetList) { } } +if (!isset($onlyStella)) $onlyStella = false; + +if ($onlyStella) { + $hasAlbum = false; + $list = $songs; + + foreach ($albums as $id => $album) { + foreach ($album["tracks"] as $track) { + $list[$track]["_albumID"] = $id; + } + } + + uasort($list, function ($a, $b) { + return strcmp($a["title"], $b["title"]); + }); + + $list = array_filter($list, function ($i) { + return file_exists($_SERVER['DOCUMENT_ROOT'] . "/assets/content/" . $i . ".stella"); + }, ARRAY_FILTER_USE_KEY); +} + ?> @@ -55,6 +76,8 @@ if (!$presetList) { Favorites + + Mist Stella Songs @@ -74,7 +97,7 @@ if (!$presetList) {
Back
-
Songs
+
SongsMist Stella
@@ -145,9 +168,16 @@ if (!$presetList) { Hi-Res Lossless ยท - Mist Stella +
+
class="nolibrary"> -- cgit