1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-01-24 20:32:49 -05:00

Parse video profile

This commit is contained in:
Zed
2020-06-10 17:05:55 +02:00
parent 4f6b8bad9e
commit 179b3bc496

View File

@@ -255,6 +255,8 @@ proc parseTweet(js: JsonNode): Tweet =
result.photos.add m{"media_url_https"}.getImageStr
of "video":
result.video = some(parseVideo(m))
with user, m{"additional_media_info", "source_user"}:
result.attribution = some(parseProfile(user))
of "animated_gif":
result.gif = some(parseGif(m))
else: discard