Remove duplicate isDir attribute from song XML
This commit is contained in:
@@ -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>';
|
||||
|
||||
Reference in New Issue
Block a user