[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()
|
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()
|
durationMs = ValidString(headers["X-Head-Time-Millis"]).ToInt()
|
||||||
segmentCount = ValidString(headers["X-Head-Seqnum"]).ToInt()
|
segmentCount = ValidString(headers["X-Head-Seqnum"]).ToInt()
|
||||||
|
|
||||||
@@ -698,10 +702,6 @@ namespace Innertube
|
|||||||
if segmentCount > 0
|
if segmentCount > 0
|
||||||
parsedResponse["postLiveDvrSegmentCount"] = segmentCount
|
parsedResponse["postLiveDvrSegmentCount"] = segmentCount
|
||||||
end if
|
end if
|
||||||
|
|
||||||
if segmentCount = 0 or durationMs = 0
|
|
||||||
LogError("GetPostLiveDvrInfo: Missing Post-Live DVR info in headers", headers)
|
|
||||||
end if
|
|
||||||
end function
|
end function
|
||||||
|
|
||||||
function GetOTFSegmentInfo(adaptiveFormats as object, client as Innertube.ClientType, cancellation as object) as void
|
function GetOTFSegmentInfo(adaptiveFormats as object, client as Innertube.ClientType, cancellation as object) as void
|
||||||
|
|||||||
Reference in new issue
Block a user