|
|
|
@ -576,7 +576,6 @@ function download(type) {
|
|
|
|
|
|
|
|
|
|
|
|
downloadProcess = ytdlp.exec(
|
|
|
|
downloadProcess = ytdlp.exec(
|
|
|
|
[
|
|
|
|
[
|
|
|
|
url,
|
|
|
|
|
|
|
|
rangeOption,
|
|
|
|
rangeOption,
|
|
|
|
rangeCmd,
|
|
|
|
rangeCmd,
|
|
|
|
"-f",
|
|
|
|
"-f",
|
|
|
|
@ -586,8 +585,9 @@ function download(type) {
|
|
|
|
"--ffmpeg-location",
|
|
|
|
"--ffmpeg-location",
|
|
|
|
ffmpeg,
|
|
|
|
ffmpeg,
|
|
|
|
subs,
|
|
|
|
subs,
|
|
|
|
subLangs
|
|
|
|
subLangs,
|
|
|
|
// autoSubs
|
|
|
|
"--no-playlist",
|
|
|
|
|
|
|
|
url
|
|
|
|
],
|
|
|
|
],
|
|
|
|
{ shell: true, detached: false },
|
|
|
|
{ shell: true, detached: false },
|
|
|
|
controller.signal
|
|
|
|
controller.signal
|
|
|
|
@ -603,7 +603,6 @@ function download(type) {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
downloadProcess = ytdlp.exec(
|
|
|
|
downloadProcess = ytdlp.exec(
|
|
|
|
[
|
|
|
|
[
|
|
|
|
url,
|
|
|
|
|
|
|
|
"-x",
|
|
|
|
"-x",
|
|
|
|
"--audio-format",
|
|
|
|
"--audio-format",
|
|
|
|
extractFormat,
|
|
|
|
extractFormat,
|
|
|
|
@ -611,6 +610,7 @@ function download(type) {
|
|
|
|
`${path.join(downloadDir, filename + `.${extractExt}`)}`,
|
|
|
|
`${path.join(downloadDir, filename + `.${extractExt}`)}`,
|
|
|
|
"--ffmpeg-location",
|
|
|
|
"--ffmpeg-location",
|
|
|
|
ffmpeg,
|
|
|
|
ffmpeg,
|
|
|
|
|
|
|
|
url
|
|
|
|
],
|
|
|
|
],
|
|
|
|
{ shell: true, detached: false },
|
|
|
|
{ shell: true, detached: false },
|
|
|
|
controller.signal
|
|
|
|
controller.signal
|
|
|
|
@ -620,7 +620,6 @@ function download(type) {
|
|
|
|
else {
|
|
|
|
else {
|
|
|
|
downloadProcess = ytdlp.exec(
|
|
|
|
downloadProcess = ytdlp.exec(
|
|
|
|
[
|
|
|
|
[
|
|
|
|
url,
|
|
|
|
|
|
|
|
rangeOption,
|
|
|
|
rangeOption,
|
|
|
|
rangeCmd,
|
|
|
|
rangeCmd,
|
|
|
|
"-f",
|
|
|
|
"-f",
|
|
|
|
@ -630,8 +629,9 @@ function download(type) {
|
|
|
|
"--ffmpeg-location",
|
|
|
|
"--ffmpeg-location",
|
|
|
|
ffmpeg,
|
|
|
|
ffmpeg,
|
|
|
|
subs,
|
|
|
|
subs,
|
|
|
|
subLangs
|
|
|
|
subLangs,
|
|
|
|
// autoSubs
|
|
|
|
"--no-playlist",
|
|
|
|
|
|
|
|
url
|
|
|
|
],
|
|
|
|
],
|
|
|
|
{ shell: true, detached: false },
|
|
|
|
{ shell: true, detached: false },
|
|
|
|
controller.signal
|
|
|
|
controller.signal
|
|
|
|
|