Remove duplicate isDir attribute from song XML

This commit is contained in:
2025-12-07 23:18:52 +00:00
parent 6d06f7621c
commit c377cb7833

View File

@@ -194,9 +194,7 @@ router.get('/getMusicDirectory.view', authenticateSubsonic, async (req, res) =>
let dirXml = `<directory id="${id}" parent="${parentArtistId}" name="${escapeXml(targetAlbum)}">\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 += '</directory>';