mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Use Karax html rendering instead of source filters (#2)
* Use Karax html rendering instead of source filters
This commit is contained in:
parent
fad2575d93
commit
ab36664ad2
21 changed files with 482 additions and 507 deletions
|
|
@ -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"):
|
||||
|
|
|
|||
Loading…
Reference in a new issue