aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-09-08 16:55:42 +0200
committerChocobozzz <me@florianbigard.com>2021-09-08 16:55:42 +0200
commit414f77c8d84bbfcc0c356fbb2352d7cd9d30f5ef (patch)
tree3c2b2d7e609470046d026e2f38b2809e4d8a3f92
parent1c93ad0778d9bde1ba4caf87f24ecef27a8346a9 (diff)
downloadPeerTube-414f77c8d84bbfcc0c356fbb2352d7cd9d30f5ef.tar.gz
PeerTube-414f77c8d84bbfcc0c356fbb2352d7cd9d30f5ef.tar.zst
PeerTube-414f77c8d84bbfcc0c356fbb2352d7cd9d30f5ef.zip
Don't force youtube-dl host
-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 3c80e7d41..3072affed 100644
--- a/server/helpers/youtube-dl.ts
+++ b/server/helpers/youtube-dl.ts
@@ -351,7 +351,7 @@ class YoutubeDL {
351 } 351 }
352 352
353 const newUrl = result.headers.location 353 const newUrl = result.headers.location
354 const newVersion = /yt-dl\.org\/downloads\/(\d{4}\.\d\d\.\d\d(\.\d)?)\/youtube-dl/.exec(newUrl)[1] 354 const newVersion = /\/(\d{4}\.\d\d\.\d\d(\.\d)?)\/youtube-dl$/.exec(newUrl)[1]
355 355
356 const downloadFileStream = got.stream(newUrl) 356 const downloadFileStream = got.stream(newUrl)
357 const writeStream = createWriteStream(bin, { mode: 493 }) 357 const writeStream = createWriteStream(bin, { mode: 493 })