The next-generation file converter. Open source, fully local* and free forever.
fix: proper fix to audio thumbnails
Maya120f6f478048
diff --git a/bun.lock b/bun.lockindex fc07682..4eda6c2 100644--- a/bun.lock+++ b/bun.lock@@ -23,7 +23,7 @@"dicom.ts": "^1.3.0","fflate": "^0.8.3","mediabunny": "^1.46.0",- "music-metadata": "11.8.3",+ "music-metadata": "^11.12.3","overlayscrollbars": "^2.16.0","overlayscrollbars-svelte": "^0.5.5","p-queue": "^9.3.0",@@ -682,7 +682,7 @@"ms": ["[email protected]", "", {}, "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="],- "music-metadata": ["[email protected]", "", { "dependencies": { "@borewit/text-codec": "^0.2.0", "@tokenizer/token": "^0.3.0", "content-type": "^1.0.5", "debug": "^4.4.1", "file-type": "^21.0.0", "media-typer": "^1.1.0", "strtok3": "^10.3.4", "token-types": "^6.1.1", "uint8array-extras": "^1.4.1" } }, "sha512-Tgiv4MlCgDb6XzelziB1mmL2xeoHls0KTpCm3Z3qr+LfF4mBEpkuc5vNrc927IT5+S5fv+vzStfI+HYC0igDpA=="],+ "music-metadata": ["[email protected]", "", { "dependencies": { "@borewit/text-codec": "^0.2.2", "@tokenizer/token": "^0.3.0", "content-type": "^1.0.5", "debug": "^4.4.3", "file-type": "^21.3.1", "media-typer": "^1.1.0", "strtok3": "^10.3.4", "token-types": "^6.1.2", "uint8array-extras": "^1.5.0", "win-guid": "^0.2.1" } }, "sha512-n6hSTZkuD59qWgHh6IP5dtDlDZQXoxk/bcA85Jywg8Z1iFrlNgl2+GTFgjZyn52W5UgQpV42V4XqrQZZAMbZTQ=="],"mz": ["[email protected]", "", { "dependencies": { "any-promise": "^1.0.0", "object-assign": "^4.0.1", "thenify-all": "^1.0.0" } }, "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q=="],@@ -902,6 +902,8 @@"which": ["[email protected]", "", { "dependencies": { "isexe": "^2.0.0" }, "bin": { "node-which": "./bin/node-which" } }, "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA=="],+ "win-guid": ["[email protected]", "", {}, "sha512-gEIQU4mkgl2OPeoNrWflcJFJ3Ae2BPd4eCsHHA/XikslkIVms/nHhvnvzIZV7VLmBvtFlDOzLt9rrZT+n6D67A=="],+"word-wrap": ["[email protected]", "", {}, "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA=="],"wrap-ansi": ["[email protected]", "", { "dependencies": { "ansi-styles": "^6.1.0", "string-width": "^5.0.1", "strip-ansi": "^7.0.1" } }, "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ=="],diff --git a/package.json b/package.jsonindex c76b7b8..4606f2e 100644--- a/package.json+++ b/package.json@@ -57,7 +57,7 @@"dicom.ts": "^1.3.0","fflate": "^0.8.3","mediabunny": "^1.46.0",- "music-metadata": "11.8.3",+ "music-metadata": "^11.12.3","overlayscrollbars": "^2.16.0","overlayscrollbars-svelte": "^0.5.5","p-queue": "^9.3.0",diff --git a/src/lib/store/index.svelte.ts b/src/lib/store/index.svelte.tsindex 4dfd3d5..f7b9f97 100644--- a/src/lib/store/index.svelte.ts+++ b/src/lib/store/index.svelte.ts@@ -101,18 +101,13 @@ class Files {const { common } = await parseBlob(file.file, {skipPostHeaders: true,});- console.log(JSON.stringify(common, null, 2));const cover = selectCover(common.picture);if (cover) {- const arrayBuffer =- cover.data.buffer instanceof ArrayBuffer- ? cover.data.buffer- : new Uint8Array(cover.data).buffer;- const blob = new Blob([new Uint8Array(arrayBuffer)], {+ const coverData = new Uint8Array(cover.data);+ const blob = new Blob([coverData.buffer], {type: cover.format,});file.blobUrl = URL.createObjectURL(blob);- console.log(file.blobUrl)}} else if (isVideo) {// video