possible fix for typeerror: terminated

This commit is contained in:
stratuma 2024-07-08 15:45:08 +02:00
parent cec66853c4
commit cf76776eb6
2 changed files with 6 additions and 2 deletions

View File

@ -1241,7 +1241,9 @@ async function downloadParts(parts: { filename: string; url: string }[], downloa
console.log(`[Video DOWNLOAD] Fetching Part ${ind + 1}`)
const response = await fetch(part.url)
const rawres = await fetch(part.url)
const response = rawres.clone()
if (!response.ok) {
throw Error(await response.text())

View File

@ -53,7 +53,9 @@ export async function downloadMPDAudio(
console.log(`[${name} DOWNLOAD] Fetching Part ${ind + 1}`)
const response = await fetch(part.url)
const rawres = await fetch(part.url)
const response = rawres.clone()
if (!response.ok) {
throw Error(await response.text())