first release

This commit is contained in:
genio
2021-11-18 21:46:38 +01:00
parent 9ea28f281a
commit f0034c57d8
14 changed files with 182 additions and 62 deletions

16
lib/fetch-yt-dlp.js Normal file
View File

@@ -0,0 +1,16 @@
const https = require('https');
const path = require('path');
const fs = require('fs');
const isWindows = process.platform === 'win32';
const file = fs.createWriteStream(path.join(
__dirname, `yt-dlp${isWindows ? '.exe' : ''}`
));
https.get(
isWindows ?
'https://github.com/yt-dlp/yt-dlp/releases/download/2021.11.10.1/yt-dlp.exe' :
'https://github.com/yt-dlp/yt-dlp/releases/download/2021.11.10.1/yt-dlp',
res => res.pipe(file)
);