mirror of
https://github.com/YuzuZensai/play-dl-test.git
synced 2026-01-06 04:32:40 +00:00
Agent added
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import got from "got"
|
||||
import { video_info } from "."
|
||||
|
||||
import agent from 'agentkeepalive'
|
||||
|
||||
interface FilterOptions {
|
||||
averagebitrate? : number;
|
||||
@@ -90,6 +90,9 @@ export async function stream(url : string, options? : StreamOptions){
|
||||
'Accept-Encoding': '',
|
||||
'Accept-Language': 'en-US,en;q=0.8'
|
||||
},
|
||||
agent : {
|
||||
https : new agent.HttpsAgent()
|
||||
},
|
||||
http2 : true
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user