Watch
1
0
Fork
You've already forked nitter
0
mirror of https://github.com/zedeus/nitter synced 2026-11-22 12:57:19 +00:00

Fix nil card url crash

This commit is contained in:
Zed 2019-10-19 21:46:16 +02:00
commit 3218cc4069

View file

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