From 86b1afe2439b753305612364c13a32217ed620a8 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Thu, 6 Nov 2025 08:25:33 -0500 Subject: [PATCH] [skip ci] adjust error check --- .../src/components/Services/Innertube/PlayerEndpoint.bs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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