Capture missing init-range fields - 2
This commit is contained in:
1 parent
5acfe91944
commit
ff663b6787
2 files changed
+16
-10
No files matched your search
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|||||||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
|
||||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||||
|
|
||||||
|
## [Unreleased]
|
||||||
|
|
||||||
|
### Fixed
|
||||||
|
|
||||||
|
- Capturing diagnostic events related to playback errors to further investigate
|
||||||
|
|
||||||
## [0.41.19] - 2025-09-21
|
## [0.41.19] - 2025-09-21
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ namespace Innertube
|
|||||||
|
|
||||||
hasLiveStreamingData = FormatsHaveLiveStreamingData(adaptiveFormats) or FormatsHaveLiveStreamingData(formats)
|
hasLiveStreamingData = FormatsHaveLiveStreamingData(adaptiveFormats) or FormatsHaveLiveStreamingData(formats)
|
||||||
|
|
||||||
adaptiveFormats = TransformFormats(adaptiveFormats, true)
|
adaptiveFormats = TransformFormats(adaptiveFormats, not hasLiveStreamingData)
|
||||||
formats = TransformFormats(formats, false)
|
formats = TransformFormats(formats, false)
|
||||||
|
|
||||||
parsedResponse["type"] = "video"
|
parsedResponse["type"] = "video"
|
||||||
@@ -314,25 +314,25 @@ namespace Innertube
|
|||||||
analysis = invalid
|
analysis = invalid
|
||||||
if analyze
|
if analyze
|
||||||
analysis = {
|
analysis = {
|
||||||
"noInitRange": []
|
"issueDetected": false
|
||||||
"noIndexRange": []
|
|
||||||
}
|
}
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
result = []
|
||||||
for i = 0 to formats.Count() - 1
|
for i = 0 to formats.Count() - 1
|
||||||
formats[i] = TransformFormat(formats[i], analysis)
|
result.Push(TransformFormat(formats[i], analysis))
|
||||||
end for
|
end for
|
||||||
|
|
||||||
|
if analyze and analysis.issueDetected
|
||||||
' Are these OTF streams?
|
' Are these OTF streams?
|
||||||
if analyze and (analysis["noInitRange"].Count() > 0 or analysis["noIndexRange"].Count() > 0)
|
|
||||||
LogTelemetryEvent({
|
LogTelemetryEvent({
|
||||||
level: "error"
|
level: "error"
|
||||||
message: `Some formats are missing initRange or indexRange\nAnalysis: ${ToString(analysis)}\nFormats: ${FormatJson(formats)}`
|
message: `Some formats are missing initRange or indexRange\nFormats: ${FormatJson(formats)}`
|
||||||
fingerprint: ["noInitRange-noIndexRange"]
|
fingerprint: ["Some formats are missing initRange or indexRange"]
|
||||||
})
|
})
|
||||||
end if
|
end if
|
||||||
|
|
||||||
return formats
|
return result
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function TransformFormat(fmt as object, analysis as object) as object
|
function TransformFormat(fmt as object, analysis as object) as object
|
||||||
@@ -351,7 +351,7 @@ namespace Innertube
|
|||||||
else
|
else
|
||||||
result["init"] = ""
|
result["init"] = ""
|
||||||
if analysis <> invalid
|
if analysis <> invalid
|
||||||
analysis["noInitRange"].Push(itag)
|
analysis.issueDetected = true
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
if IsAssociativeArray(fmt["indexRange"])
|
if IsAssociativeArray(fmt["indexRange"])
|
||||||
@@ -359,7 +359,7 @@ namespace Innertube
|
|||||||
else
|
else
|
||||||
result["index"] = ""
|
result["index"] = ""
|
||||||
if analysis <> invalid
|
if analysis <> invalid
|
||||||
analysis["noIndexRange"].Push(itag)
|
analysis.issueDetected = true
|
||||||
end if
|
end if
|
||||||
end if
|
end if
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user