Separate metadata from collections #209

Merged
wojtek merged 6 commits from 187---make-fetch-asynchronous into main 2024-08-31 22:55:25 +02:00
Showing only changes of commit be9901cb24 - Show all commits

View File

@ -76,7 +76,7 @@ fn from_search_artist_response_artist(entity: SearchArtistResponseArtist) -> Mat
Match { Match {
score: entity.score, score: entity.score,
item: ArtistMeta { item: ArtistMeta {
id: entity.name.into(), id: entity.name,
sort: entity.sort.map(Into::into), sort: entity.sort.map(Into::into),
musicbrainz: Some(entity.id.into()), musicbrainz: Some(entity.id.into()),
properties: HashMap::new(), properties: HashMap::new(),
@ -91,7 +91,7 @@ fn from_search_release_group_response_release_group(
Match { Match {
score: entity.score, score: entity.score,
item: AlbumMeta { item: AlbumMeta {
id: entity.title.into(), id: entity.title,
date: entity.first_release_date, date: entity.first_release_date,
seq: AlbumSeq::default(), seq: AlbumSeq::default(),
musicbrainz: Some(entity.id.into()), musicbrainz: Some(entity.id.into()),