From c377cb7833d2184a4788d997da233543726f3442 Mon Sep 17 00:00:00 2001 From: Paul Bailey Date: Sun, 7 Dec 2025 23:18:52 +0000 Subject: [PATCH] Remove duplicate isDir attribute from song XML --- src/routes/subsonic.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/routes/subsonic.js b/src/routes/subsonic.js index 974bf4e..0c91ff8 100644 --- a/src/routes/subsonic.js +++ b/src/routes/subsonic.js @@ -194,9 +194,7 @@ router.get('/getMusicDirectory.view', authenticateSubsonic, async (req, res) => let dirXml = `\n`; tracks.forEach(track => { - const songXml = buildSongXml(track, req); - // Replace the closing /> with isDir="false" /> - dirXml += songXml.replace('type="music"/>', 'type="music" isDir="false"/>'); + dirXml += buildSongXml(track, req); }); dirXml += '';