Implement cannot have MBID in core #220

Merged
wojtek merged 2 commits from 189---enable-fetch-to-apply-modifications-to-the-database into main 2024-09-24 22:38:40 +02:00
Showing only changes of commit bbafe65881 - Show all commits

View File

@ -76,8 +76,8 @@ impl<'a> ArtistOverlay<'a> {
Properties: {}",
artist.map(|a| a.meta.id.name.as_str()).unwrap_or(""),
artist
.and_then(|a| Some(UiDisplay::display_mb_ref_option_as_url(&a.meta.musicbrainz)))
.unwrap_or(""),
.map(|a| UiDisplay::display_mb_ref_option_as_url(&a.meta.musicbrainz))
.unwrap_or_default(),
Self::opt_hashmap_to_string(
artist.map(|a| &a.meta.properties),
&double_item_indent,
@ -104,8 +104,8 @@ impl<'a> AlbumOverlay<'a> {
MusicBrainz: {}",
album.map(|a| a.meta.id.title.as_str()).unwrap_or(""),
album
.and_then(|a| Some(UiDisplay::display_mb_ref_option_as_url(&a.meta.musicbrainz)))
.unwrap_or(""),
.map(|a| UiDisplay::display_mb_ref_option_as_url(&a.meta.musicbrainz))
.unwrap_or_default(),
));
AlbumOverlay { properties }