[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

+3 -1
View File
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
- Nothing worth mentioning yet.
### Fixed
- Another mistake in OTF streams
## [0.43.8] - 2025-11-07
@@ -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:")