fix: 修复图片地址获取不到的bug

This commit is contained in:
fengxxc
2021-11-30 11:36:26 +08:00
parent dfaa0d6605
commit 7fd81d440d

View File

@@ -25,7 +25,7 @@ func parseSection(s *goquery.Selection) Paragraph {
attr["href"], _ = s.Attr("href")
p = Piece{LINK, removeBrAndBlank(s.Text()), attr}
} else if s.Is("img") {
attr["src"], _ = s.Attr("src")
attr["src"], _ = s.Attr("data-src")
attr["alt"], _ = s.Attr("alt")
attr["title"], _ = s.Attr("title")
p = Piece{IMAGE, "", attr}