mirror of
https://github.com/zedeus/nitter.git
synced 2024-12-12 11:06:30 +00:00
Fix nil card url crash
This commit is contained in:
parent
d5061bde05
commit
3218cc4069
1 changed files with 1 additions and 1 deletions
|
@ -254,7 +254,7 @@ proc parseCard*(card: var Card; node: XmlNode) =
|
|||
card.dest = node.selectText("span.SummaryCard-destination")
|
||||
|
||||
if card.url.len == 0:
|
||||
card.url = node.select("a").attr("href")
|
||||
card.url = node.selectAttr("a", "href")
|
||||
|
||||
let image = node.select(".tcu-imageWrapper img")
|
||||
if image != nil:
|
||||
|
|
Loading…
Reference in a new issue