Add fix for videos that don't have videoDetails

This commit is contained in:
Omar Roth 2019-02-19 13:54:14 -06:00
parent 92223dbee5
commit 58fb74179b

View file

@ -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