1
0
mirror of https://github.com/zedeus/nitter.git synced 2026-01-29 06:42:50 -05:00

Support profile image color parsing in wip parser

This commit is contained in:
Zed
2022-01-26 18:24:34 +01:00
parent a54d6aa1eb
commit 49a2fbb070
2 changed files with 19 additions and 1 deletions

View File

@@ -18,6 +18,7 @@ type
protected*: bool
profileBannerUrl*: string
profileImageUrlHttps*: string
profileImageExtensions*: ImageExtensions
profileLinkColor*: string
pinnedTweetIdsStr*: seq[string]
@@ -27,3 +28,15 @@ type
Urls* = object
urls*: seq[Url]
ImageExtensions = object
mediaColor*: tuple[r: Ok]
Ok = object
ok*: Palette
Palette = object
palette*: seq[tuple[rgb: Color]]
Color* = object
red*, green*, blue*: int