songs are now required to have an artist. this breaks existing dbfiles!

This commit is contained in:
Mark
2023-09-11 14:23:30 +02:00
parent 6131bc50a4
commit c93b933037
6 changed files with 12 additions and 16 deletions

View File

@@ -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);
}
}