From d70933c9f2bb7c0aa1f5cb23a555a040b1ac895a Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 26 Mar 2019 13:47:06 -0500 Subject: [PATCH] Fix typo in allow_ratings --- src/invidious/videos.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index dc135aef..d9cd4d7b 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -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