Better video/gif support

This commit is contained in:
Zed
2019-06-24 05:14:14 +02:00
parent 8f7c61eab6
commit 861ac7a593
7 changed files with 151 additions and 39 deletions

View File

@@ -31,7 +31,26 @@ db("cache.db", "", "", ""):
.}: Time
type
Tweet* = object
Video* = object
id*: string
url*: string
thumb*: string
length*: int
views*: string
available*: bool
Gif* = object
url*: string
thumb*: string
Quote* = ref object
id*: string
profile*: Profile
link*: string
text*: string
video*: Option[Video]
Tweet* = ref object
id*: string
profile*: Profile
link*: string
@@ -42,16 +61,16 @@ type
retweets*: string
likes*: string
pinned*: bool
photos*: seq[string]
quote*: Option[Quote]
retweetBy*: Option[string]
gif*: Option[string]
video*: Option[string]
videoThumb*: Option[string]
retweetId*: Option[string]
gif*: Option[Gif]
video*: Option[Video]
photos*: seq[string]
Tweets* = seq[Tweet]
Conversation* = object
Conversation* = ref object
tweet*: Tweet
before*: Tweets
after*: Tweets