mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-23 03:45:36 +00:00
Fix quote reply edgecase
This commit is contained in:
parent
f378eedcc8
commit
69f5a555cb
|
@ -123,8 +123,12 @@ proc parseTweetStats*(node: XmlNode): TweetStats =
|
||||||
proc parseTweetReply*(node: XmlNode): seq[string] =
|
proc parseTweetReply*(node: XmlNode): seq[string] =
|
||||||
let reply = node.select(".ReplyingToContextBelowAuthor")
|
let reply = node.select(".ReplyingToContextBelowAuthor")
|
||||||
if reply == nil: return
|
if reply == nil: return
|
||||||
for username in reply.selectAll("a"):
|
|
||||||
result.add username.selectText("b")
|
let selector = if "Quote" in node.attr("class"): "b"
|
||||||
|
else: "a b"
|
||||||
|
|
||||||
|
for username in reply.selectAll(selector):
|
||||||
|
result.add username.innerText()
|
||||||
|
|
||||||
proc getGif(player: XmlNode): Gif =
|
proc getGif(player: XmlNode): Gif =
|
||||||
let
|
let
|
||||||
|
|
Loading…
Reference in a new issue