Fallback for post live dvr and OTF videos
This commit is contained in:
1 parent
dd1cd8db97
commit
777b36852f
3 files changed
+23
-5
No files matched your search
@@ -627,4 +627,22 @@ namespace Innertube
|
||||
|
||||
return false
|
||||
end function
|
||||
|
||||
function IsTypeOTF(payload as object) as boolean
|
||||
return FormatsHasTypeOTF(ObjectUtils.Dig(payload, ["streamingData", "adaptiveFormats"]))
|
||||
end function
|
||||
|
||||
function FormatsHasTypeOTF(formats as object) as boolean
|
||||
if not IsArray(formats)
|
||||
return false
|
||||
end if
|
||||
for each fmt in formats
|
||||
if ValidString(fmt["type"]) = "FORMAT_STREAM_TYPE_OTF"
|
||||
return true
|
||||
end if
|
||||
end for
|
||||
|
||||
return false
|
||||
end function
|
||||
|
||||
end namespace
|
||||
Reference in new issue
Block a user