YouTube.js icon indicating copy to clipboard operation
YouTube.js copied to clipboard

bug in toDash() function

Open rizer234 opened this issue 1 year ago • 2 comments

Steps to reproduce

for a specific video with id: "qkWqt4Bo1E4" if we already have Innertube session:

1. const videoInfo = await Innertube.getInfo("qkWqt4Bo1E4");
2. const dash = await videoInfo.toDash()

error raises in step 2.

Failure Logs

Failed to extract the segment durations from this OTF stream

Expected behavior

we expect to responses dash format of videoInfo.

Current behavior

raises an error: Failed to extract the segment durations from this OTF stream

Version

Edge

Anything else?

No response

Checklist

  • [ ] I am running the latest version.
  • [X] I checked the documentation and found no answer.
  • [X] I have searched the existing issues and made sure this is not a duplicate.
  • [X] I have provided sufficient information.

rizer234 avatar Apr 09 '24 13:04 rizer234

Working fine here for me. Generating a manifest for a video with OTF streams, requires downloading the first segment of the OTF stream, to find out how many segments that stream has and how long each segment is, so please make sure that your device is able to successfully send requests to the video streaming endpoint.

absidue avatar Apr 09 '24 17:04 absidue

I'm getting the same issue on the latest version for the given video and a couple more (hDGGAwnDtCs, eO8Uv8oEzx4, HtpDGRd8xKM, IAlnsXe2ab0, Hph7Vx3LVQE, kZ5NYvhWXUw). The issue seems to be that await response.text() in StreamingInfo.ts:237 returns an empty string.

Redcrafter avatar Dec 22 '24 16:12 Redcrafter