diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-03-26 13:47:06 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-03-26 13:47:06 -0500 |
| commit | d70933c9f2bb7c0aa1f5cb23a555a040b1ac895a (patch) | |
| tree | 7a83f50a9b5c39d227c05ef4fbface9e4ece11d8 | |
| parent | 9ac2ddcb4dc21f6d8c5aebce69d446bfb4fc9802 (diff) | |
| download | invidious-d70933c9f2bb7c0aa1f5cb23a555a040b1ac895a.tar.gz invidious-d70933c9f2bb7c0aa1f5cb23a555a040b1ac895a.tar.bz2 invidious-d70933c9f2bb7c0aa1f5cb23a555a040b1ac895a.zip | |
Fix typo in allow_ratings
| -rw-r--r-- | src/invidious/videos.cr | 6 |
1 files 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 |
