Cookies Update

This commit is contained in:
killer069
2021-09-02 09:23:56 +05:30
parent 382447f397
commit 379b38c363
2 changed files with 8 additions and 6 deletions

View File

@@ -35,8 +35,8 @@ function parseAudioFormats(formats : any[]){
return result
}
export async function stream(url : string): Promise<Stream | LiveStreaming | LiveEnded>{
let info = await video_info(url)
export async function stream(url : string, cookie? : string): Promise<Stream | LiveStreaming | LiveEnded>{
let info = await video_info(url, cookie)
let final: any[] = [];
let type : StreamType;
if(info.LiveStreamData.isLive === true && info.LiveStreamData.hlsManifestUrl !== null) {