Separate metadata from collections #209
4
src/tui/lib/external/musicbrainz/mod.rs
vendored
4
src/tui/lib/external/musicbrainz/mod.rs
vendored
@ -76,7 +76,7 @@ fn from_search_artist_response_artist(entity: SearchArtistResponseArtist) -> Mat
|
||||
Match {
|
||||
score: entity.score,
|
||||
item: ArtistMeta {
|
||||
id: entity.name.into(),
|
||||
id: entity.name,
|
||||
sort: entity.sort.map(Into::into),
|
||||
musicbrainz: Some(entity.id.into()),
|
||||
properties: HashMap::new(),
|
||||
@ -91,7 +91,7 @@ fn from_search_release_group_response_release_group(
|
||||
Match {
|
||||
score: entity.score,
|
||||
item: AlbumMeta {
|
||||
id: entity.title.into(),
|
||||
id: entity.title,
|
||||
date: entity.first_release_date,
|
||||
seq: AlbumSeq::default(),
|
||||
musicbrainz: Some(entity.id.into()),
|
||||
|
Loading…
Reference in New Issue
Block a user