mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Support promo_video_website cards
This commit is contained in:
parent
d12f14135e
commit
27cf4cdf64
6 changed files with 48 additions and 35 deletions
|
|
@ -106,7 +106,11 @@ proc getVideo*(tweet: Tweet; token: string) {.async.} =
|
|||
await getVideo(tweet, guestToken)
|
||||
return
|
||||
|
||||
tweet.video = some(parseVideo(json))
|
||||
if tweet.card.isNone:
|
||||
tweet.video = some(parseVideo(json))
|
||||
else:
|
||||
get(tweet.card).video = some(parseVideo(json))
|
||||
tweet.video = none(Video)
|
||||
tokenUses.inc
|
||||
|
||||
proc getVideos*(thread: Thread; token="") {.async.} =
|
||||
|
|
|
|||
Loading…
Reference in a new issue