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

Configure Feed

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

fix: local individual files showing up twice

+1 -10
+1 -10
src/components/input/local/worker.js
··· 109 109 const handles = await loadHandles(); 110 110 const now = new Date().toISOString(); 111 111 112 - console.log(cachedTracks) 113 - 114 112 /** @type {Record<string, Track>} */ 115 113 const cacheByUri = {}; 116 114 ··· 120 118 121 119 const trackGroups = groupTracksByTid(cachedTracks); 122 120 123 - const allTids = new Set([ 124 - ...Object.keys(handles), 125 - ...Object.keys(trackGroups), 126 - ]); 127 - 128 - console.log(allTids); 121 + const allTids = new Set(Object.keys(trackGroups)); 129 122 130 123 const promises = [...allTids].map(async (tid) => { 131 124 const handle = handles[tid]; ··· 134 127 const perm = await /** @type {any} */ (handle).queryPermission({ 135 128 mode: "read", 136 129 }); 137 - 138 - console.log(tid, perm, handle.kind); 139 130 140 131 if (perm !== "granted") { 141 132 const cached = trackGroups[tid]?.tracks[0];