mirror of
https://github.com/zedeus/nitter
synced 2026-09-05 22:59:31 +00:00
Display media count above photo rail
This commit is contained in:
parent
7171486f03
commit
60986ecc88
4 changed files with 12 additions and 6 deletions
|
|
@ -114,6 +114,10 @@ proc getTimelineBanner*(node: XmlNode): string =
|
|||
if style.find(re"a:active \{\n +color: (#[A-Z0-9]+)", m):
|
||||
return style[m.group(0)[0]]
|
||||
|
||||
proc getMediaCount*(node: XmlNode): string =
|
||||
let text = node.selectText(".PhotoRail-headingWithCount")
|
||||
return text.stripText().split(" ")[0]
|
||||
|
||||
proc getProfileStats*(profile: var Profile; node: XmlNode) =
|
||||
for s in node.selectAll( ".ProfileNav-stat"):
|
||||
let text = s.attr("title").split(" ")[0]
|
||||
|
|
|
|||
Loading…
Reference in a new issue