mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-13 11:36:34 +00:00
Parse alternative video title
This commit is contained in:
parent
179b3bc496
commit
1811a23265
1 changed files with 3 additions and 0 deletions
|
@ -115,6 +115,9 @@ proc parseVideo(js: JsonNode): Video =
|
|||
durationMs: js{"duration_millis"}.getInt
|
||||
)
|
||||
|
||||
with title, js{"additional_media_info", "title"}:
|
||||
result.title = title.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