diff options
| author | Omar Roth <omarroth@hotmail.com> | 2018-11-02 08:26:35 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2018-11-02 08:26:35 -0500 |
| commit | d739ef8fd340149a0b1a2371ffd419c9723ce4f4 (patch) | |
| tree | 70d16cb45d678793b4b1f95593e9957d8e5b0cd7 | |
| parent | c92f6e44e708c6085eb9143e68a8a451ef641846 (diff) | |
| download | invidious-d739ef8fd340149a0b1a2371ffd419c9723ce4f4.tar.gz invidious-d739ef8fd340149a0b1a2371ffd419c9723ce4f4.tar.bz2 invidious-d739ef8fd340149a0b1a2371ffd419c9723ce4f4.zip | |
Add fix for videos without keywords
| -rw-r--r-- | src/invidious/videos.cr | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index d21806d5..1c0ad35a 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -263,7 +263,10 @@ class Video end def keywords - return self.player_response["videoDetails"]["keywords"].as_a + keywords = self.player_response["videoDetails"]["keywords"]?.try &.as_a + keywords ||= [] of String + + return keywords end def fmt_stream(decrypt_function) |
