Display media count above photo rail

This commit is contained in:
Zed
2019-08-11 23:24:02 +02:00
parent 7171486f03
commit 60986ecc88
4 changed files with 12 additions and 6 deletions

View File

@@ -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]