diff --git a/CHANGELOG.md b/CHANGELOG.md index 0ff23249..3a0fb8b0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Playback error when regular videos are returned with DRM protection +- Fallback to iOS HLS for post dvr videos ## [0.43.3] - 2025-10-30 diff --git a/playlet-lib/src/components/Services/Innertube/InnertubeService.bs b/playlet-lib/src/components/Services/Innertube/InnertubeService.bs index b8a950af..d9ffc274 100644 --- a/playlet-lib/src/components/Services/Innertube/InnertubeService.bs +++ b/playlet-lib/src/components/Services/Innertube/InnertubeService.bs @@ -81,8 +81,8 @@ namespace InnertubeService end if playerResponseJson = playerResponse.Json() - isLive = Innertube.IsLiveStream(playerResponseJson) - if isLive and client = Innertube.ClientType.Tv + isLiveOrPostLiveDvr = Innertube.IsLiveStream(playerResponseJson) or Innertube.IsPostLiveDvr(playerResponseJson) + if isLiveOrPostLiveDvr and client = Innertube.ClientType.Tv LogDebug("Live video detected, falling back to iOS for HLS streams.") isLoggedIn = Innertube.ParseIsLoggedIn(playerResponseJson) playbackTrackingUrls = Innertube.ParsePlaybackTrackingUrls(playerResponseJson, isLoggedIn) diff --git a/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs b/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs index 73e9d2e2..cb6ee327 100644 --- a/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs +++ b/playlet-lib/src/components/Services/Innertube/PlayerEndpoint.bs @@ -610,6 +610,10 @@ namespace Innertube return false end function + function IsPostLiveDvr(payload as object) as boolean + return ValidBool(ObjectUtils.Dig(payload, ["videoDetails", "isPostLiveDvr"])) + end function + function FormatsHaveLiveStreamingData(formats as object) as boolean if not IsArray(formats) return false