Use Karax html rendering instead of source filters (#2)

* Use Karax html rendering instead of source filters
This commit is contained in:
Zed 2019-07-11 00:42:31 +02:00 committed by GitHub
commit ab36664ad2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
21 changed files with 482 additions and 507 deletions

View file

@ -91,9 +91,10 @@ proc getBanner*(tweet: XmlNode): string =
result = url.replace("600x200", "1500x500")
else:
result = tweet.selectAttr(".ProfileCard-bg", "style")
result = result.replace("background-color: ", "")
if result.len == 0:
result = "background-color: #161616"
result = "#161616"
proc getPopupStats*(profile: var Profile; node: XmlNode) =
for s in node.selectAll( ".ProfileCardStats-statLink"):