fix(library): reduce artwork cache bloat with thumbnails

- metadata.rs now creates 500px thumbnails instead of copying full images
- Added cache management commands: library_get_cache_stats,
  library_clear_artwork_cache, library_clear_thumbnails_cache
- Thumbnails stored in ~/.local/share/qbz/thumbnails/ (was ~/.cache/qbz/artwork)
- Reduces cache size from GB to MB for large libraries
This commit is contained in:
vicrodh committed 2026-01-28 11:24:19 -06:00
1 parent a6fc264903
commit 7ed3dac7f5
4 files changed
+128 -53

No files matched your search

+3
View File
@@ -570,6 +570,9 @@ pub fn run() {
library::commands::library_add_folder,
library::commands::library_remove_folder,
library::commands::library_cleanup_missing_files,
library::commands::library_get_cache_stats,
library::commands::library_clear_artwork_cache,
library::commands::library_clear_thumbnails_cache,
library::commands::library_get_folders,
library::commands::library_get_folders_with_metadata,
library::commands::library_get_folder,