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 {
|
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()),
|
||||||
|
Loading…
Reference in New Issue
Block a user