mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Add description and verified to video cards
This commit is contained in:
parent
aed31b2269
commit
b8a3ffb0c4
4 changed files with 7 additions and 2 deletions
|
|
@ -135,6 +135,9 @@ proc parseVideo(js: JsonNode): Video =
|
|||
with title, js{"additional_media_info", "title"}:
|
||||
result.title = title.getStr
|
||||
|
||||
with description, js{"additional_media_info", "description"}:
|
||||
result.description = description.getStr
|
||||
|
||||
for v in js{"video_info", "variants"}:
|
||||
result.variants.add VideoVariant(
|
||||
videoType: parseEnum[VideoType](v{"content_type"}.getStr("summary")),
|
||||
|
|
|
|||
Loading…
Reference in a new issue