Subsonic: use file added info for 'created' fields, ref #601

This commit is contained in:
emeric
2025-01-25 14:44:49 +01:00
parent 8c11bef1b6
commit e553e840d3
5 changed files with 73 additions and 3 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ namespace lms::api::subsonic
albumNode.setAttribute("isDir", true);
}
albumNode.setAttribute("created", core::stringUtils::toISO8601String(release->getLastWritten()));
albumNode.setAttribute("created", release->getAddedTime().toISO8601String());
if (const auto image{ release->getImage() })
{
const CoverArtId coverArtId{ image->getId(), image->getLastWriteTime().toTime_t() };