Put all directories and images in database, use the info to associate an image to each artist

This commit is contained in:
emeric
2024-07-06 13:53:41 +02:00
parent 45c8b82865
commit d1324c1c3a
59 changed files with 2023 additions and 960 deletions
@@ -381,10 +381,10 @@ namespace lms::cover
auto transaction{ session.createReadTransaction() };
if (const Artist::pointer artist{ db::Artist::find(session, artistId) })
if (const Artist::pointer artist{ Artist::find(session, artistId) })
{
if (const db::Image::pointer image{ artist->getImage() })
artistImage = getFromCoverFile(image->getPath(), width);
artistImage = getFromCoverFile(image->getAbsoluteFilePath(), width);
}
}