Koito/engine
safierinx-a c2d393aa03 Fix Maloja importer resilience: nil MBZ client, null album, error handling
Root cause of the panic at ~1,693 items: importers created
`&mbz.MusicBrainzClient{}` (nil requestQueue) instead of using the
engine's properly initialized client. When any code path called an MBZ
method, it panicked on the nil channel.

Changes:
- Pass engine's MBZ client to Maloja and Spotify importers
- Change MalojaTrack.Album to pointer type to handle null album JSON
- Continue on error instead of aborting the entire import
- Accept both Maloja export formats ("scrobbles" and "list" keys)
- Extract per-file import into importFile() with its own defer/recover
- Add progress logging every 500 items

Test fixtures:
- maloja_import_null_album_test.json (null album, valid album, empty artists)
- maloja_api_format_test.json (API "list" format)

New tests: TestImportMaloja_NullAlbum, TestImportMaloja_ApiFormat

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-24 23:58:45 +05:30
..
handlers fix: include time zone name overrides and add KOITO_FORCE_TZ cfg option (#176) 2026-01-24 13:19:04 -05:00
middleware fix: invalid json response when login gate is disabled (#184) 2026-01-26 14:49:30 -05:00
engine.go Fix Maloja importer resilience: nil MBZ client, null album, error handling 2026-03-24 23:58:45 +05:30
engine_test.go feat: version v0.0.2 2025-06-14 19:14:30 -04:00
import_test.go Fix Maloja importer resilience: nil MBZ client, null album, error handling 2026-03-24 23:58:45 +05:30
long_test.go fix: invalid json response when login gate is disabled (#184) 2026-01-26 14:49:30 -05:00
routes.go feat: add api key auth to web api (#183) 2026-01-26 13:48:43 -05:00