ActivityPub-federated video streaming platform using P2P directly in your web browser
Don't force youtube-dl host
Chocobozzz414f77c8d84b
diff --git a/server/helpers/youtube-dl.ts b/server/helpers/youtube-dl.tsindex 3c80e7d41c..3072affed7 100644--- a/server/helpers/youtube-dl.ts+++ b/server/helpers/youtube-dl.ts@@ -351,7 +351,7 @@ class YoutubeDL {}const newUrl = result.headers.location- const newVersion = /yt-dl\.org\/downloads\/(\d{4}\.\d\d\.\d\d(\.\d)?)\/youtube-dl/.exec(newUrl)[1]+ const newVersion = /\/(\d{4}\.\d\d\.\d\d(\.\d)?)\/youtube-dl$/.exec(newUrl)[1]const downloadFileStream = got.stream(newUrl)const writeStream = createWriteStream(bin, { mode: 493 })