Make fetch also fetch artist MBID if it is missing #201

Merged
wojtek merged 13 commits from 191---make-fetch-also-fetch-artist-mbid-if-it-is-missing into main 2024-08-30 17:58:44 +02:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit ce9c1c9228 - Show all commits

View File

@ -144,7 +144,7 @@ pub struct AppPublicAlbumMatches<'app> {
#[derive(Debug, PartialEq, Eq)]
pub enum AppPublicMatchesKind<'app> {
Artist(AppPublicArtistMatches<'app>),
Album(AppPublicAlbumMatches<'app>)
Album(AppPublicAlbumMatches<'app>),
}
impl<'app> AppPublicMatchesKind<'app> {

View File

@ -25,7 +25,11 @@ pub struct Match<T> {
impl<T> Match<T> {
pub fn new(score: u8, item: T) -> Self {
Match { score, item, disambiguation: None }
Match {
score,
item,
disambiguation: None,
}
}
pub fn set_disambiguation<S: Into<String>>(&mut self, disambiguation: S) {