navidrome/server/nativeapi
Deluan 19365e5ad0 feat: add album refresh functionality after deleting missing files
Implemented RefreshAlbums method in AlbumRepository to recalculate album attributes (size, duration, song count) from their constituent media files. This method processes albums in batches to maintain efficiency with large datasets.

Added integration in deleteMissingFiles to automatically refresh affected albums in the background after deleting missing media files, ensuring album statistics remain accurate. Includes comprehensive test coverage for various scenarios including single/multiple albums, empty batches, and large batch processing.

Signed-off-by: Deluan <deluan@navidrome.org>
2025-11-08 15:10:10 -05:00
..
config.go feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
config_test.go feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
inspect.go feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
library.go feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
library_test.go feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
missing.go feat: add album refresh functionality after deleting missing files 2025-11-08 15:10:10 -05:00
native_api.go feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
native_api_song_test.go feat: Multi-library support (#4181) 2025-07-18 18:41:12 -04:00
native_api_suite_test.go Rename log.LevelCritical to log.LevelFatal 2022-12-21 14:53:36 -05:00
playlists.go feat(ui): add song Love and Rating functionality to playlist view (#4134) 2025-06-04 20:38:28 -04:00
queue.go feat(server): add update and clear play queue endpoints to native API (#4215) 2025-06-11 12:02:31 -04:00
queue_test.go feat(server): add update and clear play queue endpoints to native API (#4215) 2025-06-11 12:02:31 -04:00
translations.go refactor: load translations with sync.OnceValues 2024-11-18 14:07:31 +02:00
translations_test.go Upgrade Ginkgo to V2 2022-07-26 16:53:17 -04:00