Skip to content

Commit

Permalink
Parse video profile
Browse files Browse the repository at this point in the history
  • Loading branch information
zedeus committed Jun 10, 2020
1 parent 4f6b8ba commit 179b3bc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/parser.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 179b3bc

Please sign in to comment.