Lots of fixes for track management
This commit is contained in:
@@ -119,4 +119,22 @@ impl SearchProvider for MusicBrainzSearch {
|
||||
.collect(),
|
||||
})
|
||||
}
|
||||
|
||||
async fn get_release_groups(
|
||||
&self,
|
||||
artist_id: &str,
|
||||
) -> SearchResult<Vec<crate::provider::ReleaseGroupResult>> {
|
||||
let groups = self.client.get_artist_release_groups(artist_id).await?;
|
||||
Ok(groups
|
||||
.into_iter()
|
||||
.map(|rg| crate::provider::ReleaseGroupResult {
|
||||
id: rg.mbid,
|
||||
title: rg.title,
|
||||
primary_type: rg.primary_type,
|
||||
secondary_types: rg.secondary_types,
|
||||
first_release_date: rg.first_release_date,
|
||||
first_release_id: rg.first_release_mbid,
|
||||
})
|
||||
.collect())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user