Koito/test_assets
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
..
default_img.webp feat: Rewind (#116) 2025-12-31 18:44:55 -05:00
koito_export_test.json fix: release associations and add cleanup migration (#168) 2026-01-22 15:33:38 -05:00
listenbrainz_shoko1_123456789.zip fix: ensure mbids in mbidmapping are discovered (#180) 2026-01-25 15:51:07 -05:00
listenbrainz_shoko1_1749780844.zip chore: static -> test_assets 2025-06-13 16:23:43 -04:00
maloja_api_format_test.json Fix Maloja importer resilience: nil MBZ client, null album, error handling 2026-03-24 23:58:45 +05:30
maloja_import_null_album_test.json Fix Maloja importer resilience: nil MBZ client, null album, error handling 2026-03-24 23:58:45 +05:30
maloja_import_test.json chore: static -> test_assets 2025-06-13 16:23:43 -04:00
recenttracks-shoko2-1749776100.json chore: static -> test_assets 2025-06-13 16:23:43 -04:00
Streaming_History_Audio_spotify_import_test.json chore: static -> test_assets 2025-06-13 16:23:43 -04:00
yuu.jpg chore: static -> test_assets 2025-06-13 16:23:43 -04:00