mirror of
https://git.nadeko.net/Fijxu/invidious.git
synced 2026-02-16 21:46:08 +00:00
Add support for VR videos through videojs-vr
This commit is contained in:
@@ -760,6 +760,10 @@ struct Video
|
||||
info["microformat"]?.try &.["playerMicroformatRenderer"]["isFamilySafe"]?.try &.as_bool || false
|
||||
end
|
||||
|
||||
def is_vr : Bool
|
||||
info["streamingData"]?.try &.["adaptiveFormats"].as_a[0]?.try &.["projectionType"].as_s == "MESH" ? true : false || false
|
||||
end
|
||||
|
||||
def wilson_score : Float64
|
||||
ci_lower_bound(likes, likes + dislikes).round(4)
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user