changed genre scanning to parse multiple genres, updated db to accommodate.
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user