[YT seek] Only request header data and stop parsing header after reaching the desired cue

This commit is contained in:
absidue
2022-01-05 18:48:42 +01:00
parent e5707f049b
commit ce45f3ca62
3 changed files with 48 additions and 18 deletions

View File

@@ -92,6 +92,7 @@ export async function stream_from_info(
return new SeekStream(
final[0].url,
info.video_details.durationInSec,
final[0].indexRange.end,
Number(final[0].contentLength),
info.video_details.url,
options