[skip ci] adjust error check
This commit is contained in:
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
|
||||
|
||||
Reference in new issue
Block a user