Lots of fixes for track management

This commit is contained in:
Connor Johnstone
2026-03-18 13:43:52 -04:00
parent 208dbf422b
commit d09557d953
4 changed files with 41 additions and 1 deletions

View File

@@ -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())
}
}