From cdaebfa884dcca39cd8ef713009846a5718a3220 Mon Sep 17 00:00:00 2001 From: Tenko Date: Sun, 4 Aug 2024 00:22:55 +0900 Subject: [PATCH] =?UTF-8?q?=E7=9A=AE=E8=82=A4=E8=B5=84=E6=BA=90=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/plugins/datasource/update_data_source.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/datasource/update_data_source.go b/src/plugins/datasource/update_data_source.go index fc543cd..e3a34ca 100644 --- a/src/plugins/datasource/update_data_source.go +++ b/src/plugins/datasource/update_data_source.go @@ -89,7 +89,7 @@ func UpdateDataSourceRunner() { response, _ = http.Get(api + "时装回廊") doc, _ = goquery.NewDocumentFromReader(response.Body) doc.Find(".skinwrapper").Each(func(i int, selection *goquery.Selection) { - img, _ := url.QueryUnescape(selection.Find(".charimg").First().Nodes[0].FirstChild.Attr[0].Val) + img, _ := url.QueryUnescape(selection.Find(".charimg").First().Nodes[0].FirstChild.Attr[1].Val) skinName := selection.Find(".charnameEn").Text() compileRegex := regexp.MustCompile("_(.*?)_") match := compileRegex.FindStringSubmatch(img)