mirror of
https://github.com/iv-org/invidious.git
synced 2024-11-26 08:42:08 +05:30
Fix typo in allow_ratings
This commit is contained in:
parent
9ac2ddcb4d
commit
d70933c9f2
@ -251,7 +251,7 @@ class Video
|
||||
end
|
||||
|
||||
def allow_ratings
|
||||
allow_ratings = player_response["videoDetails"].try &.["allowRatings"]?.try &.as_bool
|
||||
allow_ratings = player_response["videoDetails"]?.try &.["allowRatings"]?.try &.as_bool
|
||||
|
||||
if allow_ratings.nil?
|
||||
return true
|
||||
@ -271,7 +271,7 @@ class Video
|
||||
end
|
||||
|
||||
def is_listed
|
||||
is_listed = player_response["videoDetails"].try &.["isCrawlable"]?.try &.as_bool
|
||||
is_listed = player_response["videoDetails"]?.try &.["isCrawlable"]?.try &.as_bool
|
||||
|
||||
if is_listed.nil?
|
||||
return true
|
||||
@ -281,7 +281,7 @@ class Video
|
||||
end
|
||||
|
||||
def is_upcoming
|
||||
is_upcoming = player_response["videoDetails"].try &.["isUpcoming"]?.try &.as_bool
|
||||
is_upcoming = player_response["videoDetails"]?.try &.["isUpcoming"]?.try &.as_bool
|
||||
|
||||
if is_upcoming.nil?
|
||||
return false
|
||||
|
Loading…
Reference in New Issue
Block a user