mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Support even more obscure card types
This commit is contained in:
parent
77994e8246
commit
0c9c37e886
4 changed files with 16 additions and 7 deletions
|
|
@ -82,8 +82,10 @@ proc getCardTitle*(js: JsonNode; kind: CardKind): string =
|
|||
result = js{"title"}.getStrVal
|
||||
if kind == promoVideoConvo:
|
||||
result = js{"thank_you_text"}.getStrVal(result)
|
||||
if kind == liveEvent:
|
||||
elif kind == liveEvent:
|
||||
result = js{"event_category"}.getStrVal
|
||||
elif kind in {videoDirectMessage, imageDirectMessage}:
|
||||
result = js{"cta1"}.getStrVal
|
||||
|
||||
proc getBanner*(js: JsonNode): string =
|
||||
let url = js{"profile_banner_url"}.getImageStr
|
||||
|
|
|
|||
Loading…
Reference in a new issue