mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-09 02:47:29 +02:00
Extracted inline deletion logic from server/nativeapi/missing.go into a new core.MissingFiles service interface and implementation. This provides better separation of concerns and testability. The MissingFiles service handles: - Deletion of specific or all missing files via transaction - Garbage collection after deletion - Extraction of affected album IDs from missing files - Background refresh of artist and album statistics The deleteMissingFiles HTTP handler now simply delegates to the service, removing 70+ lines of inline logic. All deletion, transaction, and stat refresh logic is now centralized in core/missing_files.go. Updated dependency injection to provide MissingFiles service to the native API router. Renamed receiver variable from 'n' to 'api' throughout native_api.go for consistency. |
||
|---|---|---|
| .. | ||
| config.go | ||
| config_test.go | ||
| inspect.go | ||
| library.go | ||
| library_test.go | ||
| missing.go | ||
| native_api.go | ||
| native_api_song_test.go | ||
| native_api_suite_test.go | ||
| playlists.go | ||
| queue.go | ||
| queue_test.go | ||
| translations.go | ||
| translations_test.go | ||