mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Don't force youtube-dl host
This commit is contained in:
@@ -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 })
|
||||
|
||||
Reference in New Issue
Block a user