mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-08-14.git
synced 2024-08-15 00:53:20 +00:00
Fix typo in allow_ratings
This commit is contained in:
parent
9ac2ddcb4d
commit
d70933c9f2
1 changed files with 3 additions and 3 deletions
|
@ -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 a new issue