From 44fb529740f53d58b386e6024184452aee803236 Mon Sep 17 00:00:00 2001 From: Rigel Kent Date: Sat, 24 Oct 2020 12:41:07 +0200 Subject: add node-youtube-dl download host env var in auto-updater --- server/helpers/youtube-dl.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/helpers') diff --git a/server/helpers/youtube-dl.ts b/server/helpers/youtube-dl.ts index bb5930952..c2aa8870a 100644 --- a/server/helpers/youtube-dl.ts +++ b/server/helpers/youtube-dl.ts @@ -138,7 +138,7 @@ async function updateYoutubeDLBinary () { const binDirectory = join(root(), 'node_modules', 'youtube-dl', 'bin') const bin = join(binDirectory, 'youtube-dl') 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) -- cgit v1.2.3