From ddd74549fe31dfc89d5d4a7c289b40aec90301ad Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Sat, 20 Apr 2019 10:50:55 -0500 Subject: [PATCH] Fix description field for /api/v1/videos --- src/invidious/videos.cr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index b67cf0c9..1da9fd0e 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -262,8 +262,8 @@ struct Video generate_storyboards(json, self.storyboards, config, kemal_config) end - json.field "description", html_to_content(self.description) - json.field "descriptionHtml", self.description + json.field "description", html_to_content(self.description).last + json.field "descriptionHtml", html_to_content(self.description).first json.field "published", self.published.to_unix json.field "publishedText", translate(locale, "`x` ago", recode_date(self.published, locale)) json.field "keywords", self.keywords