mirror of
https://github.com/iv-org/invidious
synced 2024-11-30 23:13:30 +01:00
Fix typo in allow_ratings
This commit is contained in:
parent
9ac2ddcb4d
commit
d70933c9f2
@ -251,7 +251,7 @@ class Video
|
|||||||
end
|
end
|
||||||
|
|
||||||
def allow_ratings
|
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?
|
if allow_ratings.nil?
|
||||||
return true
|
return true
|
||||||
@ -271,7 +271,7 @@ class Video
|
|||||||
end
|
end
|
||||||
|
|
||||||
def is_listed
|
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?
|
if is_listed.nil?
|
||||||
return true
|
return true
|
||||||
@ -281,7 +281,7 @@ class Video
|
|||||||
end
|
end
|
||||||
|
|
||||||
def is_upcoming
|
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?
|
if is_upcoming.nil?
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user