mirror of https://github.com/Chocobozzz/PeerTube
Don't force youtube-dl host
parent
1c93ad0778
commit
414f77c8d8
|
@ -351,7 +351,7 @@ class YoutubeDL {
|
||||||
}
|
}
|
||||||
|
|
||||||
const newUrl = result.headers.location
|
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 downloadFileStream = got.stream(newUrl)
|
||||||
const writeStream = createWriteStream(bin, { mode: 493 })
|
const writeStream = createWriteStream(bin, { mode: 493 })
|
||||||
|
|
Loading…
Reference in New Issue