diff --git a/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs b/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs index 8183c81a..e2b3f62c 100644 --- a/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs +++ b/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs @@ -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