Make fetch also fetch artist MBID if it is missing #201
@ -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> {
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user