stream fixed

This commit is contained in:
killer069 2021-08-16 15:26:29 +05:30
parent 61c08945c4
commit d3893e7636

View File

@ -79,6 +79,9 @@ export async function stream(url : string, options? : StreamOptions): Promise<St
if(final.length === 0) throw new Error("Video Format > 480p is not found")
}
else{
final.push(info.format[info.format.length - 1])
}
return yt_stream(final[0].url)
}