From 40a09675291c25b5e23c891870bcdd4f8aa643e9 Mon Sep 17 00:00:00 2001
From: "Jory A. Pratt" <geekypenguin@gmail.com>
Date: Sun, 15 Feb 2026 21:58:08 -0600
Subject: [PATCH 8/8] fix: reindex list_mp3.php after array_unique for clean
 JSON array

---
 list_mp3.php | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/list_mp3.php b/list_mp3.php
index d3ca8f9..2ea5423 100644
--- a/list_mp3.php
+++ b/list_mp3.php
@@ -37,9 +37,7 @@ sort($files);
 
 
 // Remove duplicates (in case someone has both .mp3 and .wav with same base name)
-
-$files = array_unique($files);
-
+$files = array_values(array_unique($files));
 
 header('Content-Type: application/json');
 
-- 
2.47.3

