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 += '';