Ignore unavailable videos for playlist index

pull/253/head
aandrew-me 1 year ago
parent 11e8b9d869
commit 7614ffb7bc

@ -198,8 +198,8 @@ function download(type) {
proxy ? "--no-check-certificate" : "", proxy ? "--no-check-certificate" : "",
proxy ? "--proxy" : "", proxy ? "--proxy" : "",
proxy, proxy,
// "--compat-options", "--compat-options",
// "no-youtube-unavailable-videos", "no-youtube-unavailable-videos",
`"${url}"`, `"${url}"`,
].filter(item => item); ].filter(item => item);
@ -243,6 +243,8 @@ function download(type) {
proxy ? "--no-check-certificate" : "", proxy ? "--no-check-certificate" : "",
proxy ? "--proxy" : "", proxy ? "--proxy" : "",
proxy, proxy,
"--compat-options",
"no-youtube-unavailable-videos",
`"${url}"`, `"${url}"`,
].filter(item => item); ].filter(item => item);
@ -283,6 +285,8 @@ function download(type) {
proxy ? "--no-check-certificate" : "", proxy ? "--no-check-certificate" : "",
proxy ? "--proxy" : "", proxy ? "--proxy" : "",
proxy, proxy,
"--compat-options",
"no-youtube-unavailable-videos",
`"${url}"`, `"${url}"`,
].filter(item => item); ].filter(item => item);
@ -450,8 +454,10 @@ function downloadThumbnails() {
"--ffmpeg-location", "--ffmpeg-location",
ffmpeg, ffmpeg,
proxy ? "--no-check-certificate" : "", proxy ? "--no-check-certificate" : "",
"--proxy", proxy ? "--proxy" : "",
proxy, proxy,
"--compat-options",
"no-youtube-unavailable-videos",
`"${url}"`, `"${url}"`,
].filter(item => item); ].filter(item => item);
@ -460,6 +466,8 @@ function downloadThumbnails() {
{shell: true, detached: false} {shell: true, detached: false}
); );
// console.log(downloadProcess.ytDlpProcess.spawnargs[2])
downloadProcess.on("ytDlpEvent", (eventType, eventData) => { downloadProcess.on("ytDlpEvent", (eventType, eventData) => {
// console.log(eventData); // console.log(eventData);
@ -524,8 +532,10 @@ function saveLinks() {
"-I", "-I",
`"${playlistIndex}:${playlistEnd}"`, `"${playlistIndex}:${playlistEnd}"`,
proxy ? "--no-check-certificate" : "", proxy ? "--no-check-certificate" : "",
"--proxy", proxy ? "--proxy" : "",
proxy, proxy,
"--compat-options",
"no-youtube-unavailable-videos",
`"${url}"`, `"${url}"`,
].filter(item => item); ].filter(item => item);

Loading…
Cancel
Save