[skip ci] adjust error check

This commit is contained in:
Brahim Hadriche committed 2025-11-06 08:25:33 -05:00
1 parent 67bf473dda
commit 86b1afe243
1 file changed
+4 -4
@@ -689,6 +689,10 @@ namespace Innertube
headers = response.Headers()
if not headers.DoesExist("X-Head-Time-Millis") or not headers.DoesExist("X-Head-Seqnum")
LogError("GetPostLiveDvrInfo: Missing Post-Live DVR info in headers", headers)
end if
durationMs = ValidString(headers["X-Head-Time-Millis"]).ToInt()
segmentCount = ValidString(headers["X-Head-Seqnum"]).ToInt()
@@ -698,10 +702,6 @@ namespace Innertube
if segmentCount > 0
parsedResponse["postLiveDvrSegmentCount"] = segmentCount
end if
if segmentCount = 0 or durationMs = 0
LogError("GetPostLiveDvrInfo: Missing Post-Live DVR info in headers", headers)
end if
end function
function GetOTFSegmentInfo(adaptiveFormats as object, client as Innertube.ClientType, cancellation as object) as void