A music player that connects to your cloud/distributed storage.
5
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: issue with deleting local input

+9 -4
+9 -4
src/components/input/local/worker.js
··· 72 72 const { tid } = parsed; 73 73 const groups = groupTracksByTid(tracks); 74 74 delete groups[tid]; 75 + const filteredTracks = Object.values(groups).map((g) => g.tracks).flat(1); 75 76 76 - const handles = await loadHandles(); 77 - delete handles[tid]; 78 - await saveHandles(handles); 77 + try { 78 + const handles = await loadHandles(); 79 + delete handles[tid]; 80 + await saveHandles(handles); 81 + } catch { 82 + // IDB cleanup failure must not prevent track removal 83 + } 79 84 80 - return Object.values(groups).map((g) => g.tracks).flat(1); 85 + return filteredTracks; 81 86 } 82 87 83 88 /**