[skip ci] Fallback to iOS HLS for post dvr videos

This commit is contained in:
Brahim Hadriche committed 2025-10-30 16:44:47 -04:00
1 parent 4d1e46cbcc
commit a1caa78e6e
3 files changed
+7 -2

No files matched your search

+1
View File
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ### Fixed
- Playback error when regular videos are returned with DRM protection - Playback error when regular videos are returned with DRM protection
- Fallback to iOS HLS for post dvr videos
## [0.43.3] - 2025-10-30 ## [0.43.3] - 2025-10-30
@@ -81,8 +81,8 @@ namespace InnertubeService
end if end if
playerResponseJson = playerResponse.Json() playerResponseJson = playerResponse.Json()
isLive = Innertube.IsLiveStream(playerResponseJson) isLiveOrPostLiveDvr = Innertube.IsLiveStream(playerResponseJson) or Innertube.IsPostLiveDvr(playerResponseJson)
if isLive and client = Innertube.ClientType.Tv if isLiveOrPostLiveDvr and client = Innertube.ClientType.Tv
LogDebug("Live video detected, falling back to iOS for HLS streams.") LogDebug("Live video detected, falling back to iOS for HLS streams.")
isLoggedIn = Innertube.ParseIsLoggedIn(playerResponseJson) isLoggedIn = Innertube.ParseIsLoggedIn(playerResponseJson)
playbackTrackingUrls = Innertube.ParsePlaybackTrackingUrls(playerResponseJson, isLoggedIn) playbackTrackingUrls = Innertube.ParsePlaybackTrackingUrls(playerResponseJson, isLoggedIn)
@@ -610,6 +610,10 @@ namespace Innertube
return false return false
end function 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 function FormatsHaveLiveStreamingData(formats as object) as boolean
if not IsArray(formats) if not IsArray(formats)
return false return false