possible fix for typeerror: terminated
This commit is contained in:
parent
cec66853c4
commit
cf76776eb6
@ -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())
|
||||
|
@ -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())
|
||||
|
Reference in New Issue
Block a user