diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-02-19 13:54:14 -0600 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-02-19 13:54:14 -0600 |
| commit | 58fb74179b4d4f01041037ce5770d819f553c2ee (patch) | |
| tree | 8140d28875742f1cb2adba4eea490a27eba120f1 | |
| parent | 92223dbee58e4f1eecedfd41cf122a13f8c30489 (diff) | |
| download | invidious-58fb74179b4d4f01041037ce5770d819f553c2ee.tar.gz invidious-58fb74179b4d4f01041037ce5770d819f553c2ee.tar.bz2 invidious-58fb74179b4d4f01041037ce5770d819f553c2ee.zip | |
Add fix for videos that don't have videoDetails
| -rw-r--r-- | src/invidious/videos.cr | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
