Parse video profile
This commit is contained in:
parent
4f6b8bad9e
commit
179b3bc496
1 changed files with 2 additions and 0 deletions
|
@ -255,6 +255,8 @@ proc parseTweet(js: JsonNode): Tweet =
|
||||||
result.photos.add m{"media_url_https"}.getImageStr
|
result.photos.add m{"media_url_https"}.getImageStr
|
||||||
of "video":
|
of "video":
|
||||||
result.video = some(parseVideo(m))
|
result.video = some(parseVideo(m))
|
||||||
|
with user, m{"additional_media_info", "source_user"}:
|
||||||
|
result.attribution = some(parseProfile(user))
|
||||||
of "animated_gif":
|
of "animated_gif":
|
||||||
result.gif = some(parseGif(m))
|
result.gif = some(parseGif(m))
|
||||||
else: discard
|
else: discard
|
||||||
|
|
Loading…
Reference in a new issue