fix live video attachments, parse playlists

This commit is contained in:
chunky programmer
2023-04-24 19:29:34 -04:00
parent 97e3938f5f
commit f298e225a1
3 changed files with 22 additions and 49 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