fix: change Range audio files
This commit is contained in:
@@ -87,7 +87,7 @@ export default function FilesList({files}) {
|
||||
|
||||
try {
|
||||
const response = await fetch(`${apiUrl}${file.url}`, {
|
||||
headers: {Range: 'bytes=0-262143'},
|
||||
headers: {Range: 'bytes=0-32767'},
|
||||
})
|
||||
const buffer = await response.arrayBuffer()
|
||||
const meta = await mm.parseBuffer(new Uint8Array(buffer), {mimeType: file.mime, skipCovers: true})
|
||||
|
||||
Reference in New Issue
Block a user