aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/youtube-dl.ts
diff options
context:
space:
mode:
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 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 })