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)