aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/youtube-dl.ts
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2020-10-24 12:41:07 +0200
committerRigel Kent <sendmemail@rigelk.eu>2020-10-24 12:42:06 +0200
commit44fb529740f53d58b386e6024184452aee803236 (patch)
tree5dc43ba6bc0045759a04985880a12390b2e8bb38 /server/helpers/youtube-dl.ts
parentd4301a6c8be7231860eee48df25d82c093a3b43c (diff)
downloadPeerTube-44fb529740f53d58b386e6024184452aee803236.tar.gz
PeerTube-44fb529740f53d58b386e6024184452aee803236.tar.zst
PeerTube-44fb529740f53d58b386e6024184452aee803236.zip
add node-youtube-dl download host env var in auto-updater
Diffstat (limited to 'server/helpers/youtube-dl.ts')
-rw-r--r--server/helpers/youtube-dl.ts2
1 files changed, 1 insertions, 1 deletions
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 () {
138 const binDirectory = join(root(), 'node_modules', 'youtube-dl', 'bin') 138 const binDirectory = join(root(), 'node_modules', 'youtube-dl', 'bin')
139 const bin = join(binDirectory, 'youtube-dl') 139 const bin = join(binDirectory, 'youtube-dl')
140 const detailsPath = join(binDirectory, 'details') 140 const detailsPath = join(binDirectory, 'details')
141 const url = 'https://yt-dl.org/downloads/latest/youtube-dl' 141 const url = process.env.YOUTUBE_DL_DOWNLOAD_HOST || 'https://yt-dl.org/downloads/latest/youtube-dl'
142 142
143 await ensureDir(binDirectory) 143 await ensureDir(binDirectory)
144 144