mirror of
https://github.com/iv-org/invidious.git
synced 2025-08-01 11:06:08 -04:00
Check for existance of "adaptiveFormats" in videos
This commit is contained in:
parent
637a5cc14f
commit
0c78d9211f
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue