From 58fb74179b4d4f01041037ce5770d819f553c2ee Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 19 Feb 2019 13:54:14 -0600 Subject: [PATCH] Add fix for videos that don't have videoDetails --- src/invidious/videos.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 4a3beac8..9c2d8745 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -263,7 +263,7 @@ class Video end def keywords - keywords = self.player_response["videoDetails"]["keywords"]?.try &.as_a + keywords = self.player_response["videoDetails"]?.try &.["keywords"]?.try &.as_a keywords ||= [] of String return keywords