Community: Fix live video + parse playlist attachments (#3767)

This commit is contained in:
Samantaz Fox
2023-05-08 15:42:06 +02:00
3 changed files with 22 additions and 47 deletions

View File

@@ -84,6 +84,7 @@ struct SearchVideo
json.field "descriptionHtml", self.description_html
json.field "viewCount", self.views
json.field "viewCountText", translate_count(locale, "generic_views_count", self.views, NumberFormatting::Short)
json.field "published", self.published.to_unix
json.field "publishedText", translate(locale, "`x` ago", recode_date(self.published, locale))
json.field "lengthSeconds", self.length_seconds