Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
Update youtube-dl.js
Browse files Browse the repository at this point in the history
Kikobeats authored Oct 29, 2019

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 51963bd commit 9195b44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/youtube-dl.js
Original file line number Diff line number Diff line change
@@ -54,7 +54,7 @@ function processData (data, options, stream) {
headers.Range = 'bytes=' + options.start + '-' + options.end
}

const req = request({ url: item.url, headers: headers, ecdhCurve: 'auto', timeout: 5000 })
const req = request({ url: item.url, headers: headers, ecdhCurve: 'auto', timeout: 30000 })

req.on('response', function response (res) {
const size = parseInt(res.headers['content-length'], 10)

0 comments on commit 9195b44

Please sign in to comment.