mirror of
https://github.com/zedeus/nitter
synced 2026-09-06 07:09:31 +00:00
Fix parsing promo_video_convo cards
This commit is contained in:
parent
27c8c0a97a
commit
f19443ed96
3 changed files with 5 additions and 1 deletions
|
|
@ -255,6 +255,8 @@ proc parseCard*(card: var Card; node: XmlNode) =
|
|||
|
||||
if card.url.len == 0:
|
||||
card.url = node.selectAttr("a", "href")
|
||||
if card.url.len == 0:
|
||||
card.url = node.selectAttr(".ConvoCard-thankYouContent", "data-thank-you-url")
|
||||
|
||||
let image = node.select(".tcu-imageWrapper img")
|
||||
if image != nil:
|
||||
|
|
|
|||
Loading…
Reference in a new issue