Add a library identifier to disambiguate clashes in the library #238
@ -54,7 +54,7 @@ impl Artist {
|
||||
}
|
||||
}
|
||||
|
||||
fn merge_album_with_lib_id(
|
||||
fn merge_album_by_lib_id(
|
||||
primary_albums: &mut [Album],
|
||||
mut secondary_album: Album,
|
||||
) -> Option<Album> {
|
||||
@ -76,7 +76,7 @@ impl Artist {
|
||||
) -> HashMap<String, Vec<Album>> {
|
||||
let mut secondary_without_id = HashMap::<String, Vec<Album>>::new();
|
||||
for secondary_album in secondary_albums.drain(..) {
|
||||
let unmerged = Artist::merge_album_with_lib_id(primary_albums, secondary_album);
|
||||
let unmerged = Artist::merge_album_by_lib_id(primary_albums, secondary_album);
|
||||
if let Some(secondary_album) = unmerged {
|
||||
secondary_without_id
|
||||
.entry(secondary_album.meta.id.title.clone())
|
||||
|
Loading…
x
Reference in New Issue
Block a user