mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-14 08:38:30 +00:00
Check for existance of "adaptiveFormats" in videos
This commit is contained in:
parent
637a5cc14f
commit
0c78d9211f
@ -766,7 +766,7 @@ struct Video
|
|||||||
end
|
end
|
||||||
|
|
||||||
def is_vr : Bool
|
def is_vr : Bool
|
||||||
info["streamingData"]?.try &.["adaptiveFormats"].as_a[0]?.try &.["projectionType"].as_s == "MESH" ? true : false || false
|
info.dig?("streamingData", "adaptiveFormats", 0, "projectionType").try &.as_s == "MESH" ? true : false || false
|
||||||
end
|
end
|
||||||
|
|
||||||
def wilson_score : Float64
|
def wilson_score : Float64
|
||||||
|
Loading…
Reference in New Issue
Block a user