configurable scan parallelism based on hdd or sdd

This commit is contained in:
2026-02-19 13:59:02 -05:00
parent 81793975b4
commit d9ebd38382
19 changed files with 1579 additions and 142 deletions
+8
View File
@@ -1,5 +1,7 @@
import { EventsOn } from '@runtime/runtime';
import { GetAllPlaylistsWithTracks } from '@go/playlist/Service';
import type { playlist } from '@go/models';
import { Events } from '../events';
type Subscriber = () => void;
@@ -9,6 +11,12 @@ class PlaylistStore {
private scrollPosition = 0;
private subscribers = new Set<Subscriber>();
constructor() {
EventsOn(Events.LibraryScanComplete, () => {
this.invalidate();
});
}
// ===================================================================
// DATA ACCESS
// Returns cached data or fetches from backend on first access.