fix(player): minor hot-cache eviction, prefetch budget, and settings live size

Small fix for hot playback cache: eviction keeps current and next only;
prefetch up to five tracks when under cap, always fetch the immediate next;
grace for the previous current until debounce; run evict immediately on
MB or folder changes; re-read cap after download; optional Track.size;
live disk usage on Audio settings.
This commit is contained in:
Maxim Isaev
2026-04-11 03:29:59 +03:00
parent 20dabbfd03
commit b4c3124168
5 changed files with 205 additions and 25 deletions
+3
View File
@@ -32,6 +32,8 @@ export interface Track {
genre?: string;
samplingRate?: number;
bitDepth?: number;
/** Subsonic `size` in bytes when provided by the server (helps hot-cache budgeting). */
size?: number;
autoAdded?: boolean;
radioAdded?: boolean;
}
@@ -58,6 +60,7 @@ export function songToTrack(song: SubsonicSong): Track {
genre: song.genre,
samplingRate: song.samplingRate,
bitDepth: song.bitDepth,
size: song.size,
};
}