Now trying to match existing 'fanart' file to associate an artist image in the artist.nfo folder, ref #750

This commit is contained in:
emeric
2025-09-15 20:31:45 +02:00
parent 87fd8bef3b
commit be75d46dc3
@@ -109,8 +109,9 @@ namespace lms::scanner
db::ArtistInfo::find(session, artistId, [&](const db::ArtistInfo::pointer& artistInfo) { db::ArtistInfo::find(session, artistId, [&](const db::ArtistInfo::pointer& artistInfo) {
fileInfoPaths.push_back(artistInfo->getAbsoluteFilePath()); fileInfoPaths.push_back(artistInfo->getAbsoluteFilePath());
// TODO make these names configurable
if (!image) if (!image)
image = findImageInDirectory(session, artistInfo->getDirectory()->getAbsolutePath(), std::array<std::string, 2>{ "thumb", "folder" }); image = findImageInDirectory(session, artistInfo->getDirectory()->getAbsolutePath(), std::array<std::string, 3>{ "thumb", "folder", "fanart" });
}); });
if (fileInfoPaths.size() > 1) if (fileInfoPaths.size() > 1)