Now prefer 'disc' artworks for tracks, ref #604

This commit is contained in:
emeric
2025-06-15 14:39:13 +02:00
parent d1314ddf0d
commit d5aead9daf
17 changed files with 136 additions and 129 deletions
@@ -48,7 +48,7 @@ namespace lms::cover
private:
ImageFindResult findArtistImage(db::ArtistId artistId) override;
ImageFindResult findPreferredTrackImage(db::TrackId trackId) override;
ImageFindResult findTrackImage(db::TrackId trackId) override;
ImageFindResult findReleaseImage(db::ReleaseId releaseId) override;
ImageFindResult findTrackListImage(db::TrackListId trackListId) override;
@@ -62,9 +62,7 @@ namespace lms::cover
void setJpegQuality(unsigned quality) override;
std::unique_ptr<image::IEncodedImage> getFromImageFile(const std::filesystem::path& p, std::optional<image::ImageSize> width) const;
std::unique_ptr<image::IEncodedImage> getTrackImage(const std::filesystem::path& path, std::optional<image::ImageSize> width) const;
static bool checkImageFile(const std::filesystem::path& filePath);
std::unique_ptr<image::IEncodedImage> getTrackImage(const std::filesystem::path& path, std::size_t index, std::optional<image::ImageSize> width) const;
db::Db& _db;