mirror of
https://github.com/iv-org/invidious.git
synced 2025-04-22 16:29:10 -04:00
Check for existance of "adaptiveFormats" in videos
This commit is contained in:
parent
637a5cc14f
commit
0c78d9211f
@ -766,7 +766,7 @@ struct Video
|
||||
end
|
||||
|
||||
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
|
||||
|
||||
def wilson_score : Float64
|
||||
|
Loading…
x
Reference in New Issue
Block a user