changed genre scanning to parse multiple genres, updated db to accommodate.

This commit is contained in:
2026-02-22 13:59:28 -05:00
parent 3947c2d6aa
commit 9cb1c6674a
24 changed files with 457 additions and 40 deletions
+12
View File
@@ -102,6 +102,12 @@ func (l *Library) clearLibraryTables() error {
)
}
if err := txq.DeleteAllRecordingGenres(l.ctx); err != nil {
return fmt.Errorf(
"could not clear recording genres: %w", err,
)
}
if err := txq.DeleteAllReleaseGroupRecordings(l.ctx); err != nil {
return fmt.Errorf(
"could not clear release group recordings: %w", err,
@@ -152,6 +158,12 @@ func (l *Library) clearLibraryTables() error {
)
}
if err := txq.DeleteAllGenres(l.ctx); err != nil {
return fmt.Errorf(
"could not clear genres: %w", err,
)
}
if err := tx.Commit(); err != nil {
return fmt.Errorf(
"could not commit library clear transaction: %w", err,