[skip ci] another otf fix

This commit is contained in:
Brahim Hadriche committed 2025-11-07 14:24:40 -05:00
1 parent 446bba67c9
commit 42ca2d1b30
2 files changed
+7 -5

No files matched your search

@@ -108,18 +108,18 @@ namespace Innertube
return true
end if
segmentDurations = OTFParseFileForSegmentInfo(file, errors)
segmentDurations = OTFParseFileForSegmentDurations(file, errors)
if segmentDurations = invalid
errors.message += `Failed to parse segment info for itag ${format.itag}.\n`
errors.message += `Failed to parse segment durations for itag ${format.itag}.\n`
errors.message += `Headers: ${ToString(response.Headers())}\n`
return true
end if
format.otfSegmentInfo = segmentDurations
format["otfSegmentDurations"] = segmentDurations
return true
end function
function OTFParseFileForSegmentInfo(filePath as string, errors as object) as dynamic
function OTFParseFileForSegmentDurations(filePath as string, errors as object) as dynamic
buffer = CreateObject("roByteArray")
buffer.FromAsciiString("Segment-Durations-Ms:")