1
0
mirror of https://github.com/zedeus/nitter.git synced 2025-12-08 04:55:37 -05:00

Support promo_video_website cards

This commit is contained in:
Zed
2019-07-15 16:03:01 +02:00
parent d12f14135e
commit 27cf4cdf64
6 changed files with 48 additions and 35 deletions

View File

@@ -71,7 +71,12 @@ type
leader*: int
CardKind* = enum
summary, summaryLarge, liveEvent, player, promoWebsite
summary = "summary"
summaryLarge = "summary_large_image"
promoWebsite = "promo_website"
promoVideo = "promo_video_website"
player = "player"
liveEvent = "live_event"
Card* = object
kind*: CardKind
@@ -81,7 +86,8 @@ type
title*: string
dest*: string
text*: string
image*: string
image*: Option[string]
video*: Option[Video]
Quote* = object
id*: string