feat: listenbrainz import

This commit is contained in:
Gabe Farrell 2025-06-12 23:35:17 -04:00
parent 63517c0a03
commit d0d7bd9a4a
9 changed files with 248 additions and 6 deletions

View file

@ -22,6 +22,8 @@ func finishImport(ctx context.Context, filename string, numImported int) error {
if err != nil {
l.Err(err).Msg("Failed to move file to import_complete dir! Import files must be removed from the import directory manually, or else the importer will run on every app start")
}
l.Info().Msgf("Finished importing %s; imported %d items", filename, numImported)
if numImported != 0 {
l.Info().Msgf("Finished importing %s; imported %d items", filename, numImported)
}
return nil
}