mirror of
https://github.com/Dummi26/musicdb.git
synced 2026-04-03 21:56:39 +02:00
songs are now required to have an artist. this breaks existing dbfiles!
This commit is contained in:
@@ -80,7 +80,7 @@ impl Database {
|
||||
if let Some(Some(album)) = album.map(|v| self.albums.get_mut(&v)) {
|
||||
album.songs.push(id);
|
||||
} else {
|
||||
if let Some(Some(artist)) = artist.map(|v| self.artists.get_mut(&v)) {
|
||||
if let Some(artist) = self.artists.get_mut(&artist) {
|
||||
artist.singles.push(id);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user