1
0
Fork 0

add node-youtube-dl download host env var in auto-updater

This commit is contained in:
Rigel Kent 2020-10-24 12:41:07 +02:00
parent d4301a6c8b
commit 44fb529740
No known key found for this signature in database
GPG key ID: 5E53E96A494E452F

View file

@ -138,7 +138,7 @@ async function updateYoutubeDLBinary () {
const binDirectory = join(root(), 'node_modules', 'youtube-dl', 'bin') const binDirectory = join(root(), 'node_modules', 'youtube-dl', 'bin')
const bin = join(binDirectory, 'youtube-dl') const bin = join(binDirectory, 'youtube-dl')
const detailsPath = join(binDirectory, 'details') const detailsPath = join(binDirectory, 'details')
const url = 'https://yt-dl.org/downloads/latest/youtube-dl' const url = process.env.YOUTUBE_DL_DOWNLOAD_HOST || 'https://yt-dl.org/downloads/latest/youtube-dl'
await ensureDir(binDirectory) await ensureDir(binDirectory)