Minor nit
This commit is contained in:
parent
0e97f26b6e
commit
54dee15713
10
src/tui/lib/external/musicbrainz/mod.rs
vendored
10
src/tui/lib/external/musicbrainz/mod.rs
vendored
@ -28,15 +28,17 @@ impl<Http: IMusicBrainzHttp> IMusicBrainz for MusicBrainz<Http> {
|
||||
album: &Album,
|
||||
) -> Result<Vec<Match<Album>>, Error> {
|
||||
let mut request = SearchReleaseGroupRequest::default();
|
||||
request
|
||||
.arid(arid)
|
||||
.release_group(&album.id.title)
|
||||
.first_release_date(&album.date);
|
||||
request.arid(arid);
|
||||
if let Some(ref mbref) = album.musicbrainz {
|
||||
request.rgid(mbref.mbid());
|
||||
} else {
|
||||
request
|
||||
.first_release_date(&album.date)
|
||||
.release_group(&album.id.title);
|
||||
}
|
||||
|
||||
let mb_response = self.client.search_release_group(request)?;
|
||||
|
||||
Ok(mb_response
|
||||
.release_groups
|
||||
.into_iter()
|
||||
|
Loading…
Reference in New Issue
Block a user