fix: show: id3 extraction not working if url had ?parameters

Massimo Melina committed Jul 5, 2024 at 00:47 UTC eb17b5e7511e3064581cb797e1a4e791cd215be3
1 file changed +1 -1
frontend/src/show.ts
+1 -1
@@ -162,7 +162,7 @@ export function fileShow(entry: DirEntry, { startPlaying=false } = {}) {
162 if (window.MediaMetadata)
163 navigator.mediaSession.metadata = new MediaMetadata(meta)
164 if (cur.ext === 'mp3') {
165 - setTags(Object.assign(meta, await getId3Tags(location + cur.n).catch(() => {})))
165 + setTags(Object.assign(meta, await getId3Tags(location.pathname + cur.n).catch(() => {})))
166 Object.assign(navigator.mediaSession?.metadata || {}, meta)
167 }
168 }