Compare commits
8 Commits
162a91ca48
...
591652f33f
Author | SHA1 | Date |
---|---|---|
Supositware | 591652f33f | 5 months ago |
Supositware | 49e13885fe | 5 months ago |
Supositware | 0bde6afdce | 5 months ago |
Supositware | c782708fa6 | 5 months ago |
Supositware | 1cd6a6009d | 5 months ago |
Supositware | 520ca95b29 | 5 months ago |
Supositware | ff98b259e7 | 5 months ago |
Supositware | fa4b5165e8 | 8 months ago |
@ -1,13 +1,17 @@
|
||||
// This is kind of useless since you can just do `./yt-dlp --update-to nightly` which I didn't know about when I wrote that.
|
||||
import utils from './downloadutils.js';
|
||||
|
||||
if (process.platform !== 'linux' && process.argv[2] !== '-f') {
|
||||
console.error('This script only download the linux version of yt-dlp. If you want to download anyway try again with -f');
|
||||
process.exit(1);
|
||||
}
|
||||
else if (process.platform !== 'linux' && process.argv[2] === '-f') {
|
||||
console.log('Executed with -f. Reminder that this script only download the linux version of yt-dlp.');
|
||||
}
|
||||
(async () => {
|
||||
if (process.platform !== 'linux' && process.argv[2] !== '-f') {
|
||||
console.error('This script only download the linux version of yt-dlp. If you want to download anyway try again with -f or execute ./bin/yt-dlp --update-to nightly');
|
||||
process.exit(1);
|
||||
}
|
||||
else if (process.platform !== 'linux' && process.argv[2] === '-f') {
|
||||
console.log('Executed with -f. Reminder that this script only download the linux version of yt-dlp.');
|
||||
}
|
||||
|
||||
const downloadUrl = 'https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp';
|
||||
const downloadUrl = 'https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp';
|
||||
|
||||
utils.download(downloadUrl, './bin/yt-dlp');
|
||||
await utils.download(downloadUrl, './bin/yt-dlp');
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue