Centralized artwork lookup logic
This commit is contained in:
@@ -320,6 +320,11 @@ AND NOT EXISTS (
|
||||
return ObjectPtr<Image>{ _image };
|
||||
}
|
||||
|
||||
ImageId Artist::getImageId() const
|
||||
{
|
||||
return _image.id();
|
||||
}
|
||||
|
||||
RangeResults<ArtistId> Artist::findSimilarArtistIds(core::EnumSet<TrackArtistLinkType> artistLinkTypes, std::optional<Range> range) const
|
||||
{
|
||||
assert(session());
|
||||
|
||||
@@ -706,6 +706,11 @@ namespace lms::db
|
||||
return ObjectPtr<Image>{ _image };
|
||||
}
|
||||
|
||||
ImageId Release::getImageId() const
|
||||
{
|
||||
return _image.id();
|
||||
}
|
||||
|
||||
void Release::clearLabels()
|
||||
{
|
||||
_labels.clear();
|
||||
|
||||
Reference in New Issue
Block a user