1 Commits

Author SHA1 Message Date
x c068755d4a fix seedingcount in scraper 2026-03-22 23:06:48 +01:00
+2 -2
View File
@@ -130,8 +130,8 @@ func (s *State) fetchProfile(ctx context.Context, user User) (*ProfileData, erro
})
doc.Find(".lista_mini_fej").Each(func(i int, sel *goquery.Selection) {
text := sel.Text()
if strings.Contains(text, "seeding") || strings.Contains(text, "futó") {
text := strings.ToLower(sel.Text())
if strings.Contains(text, "fel:") || strings.Contains(text, "le:") || strings.Contains(text, "seeding") || strings.Contains(text, "futó") {
if m := regexp.MustCompile(`\((\d+)\)`).FindStringSubmatch(text); len(m) > 1 {
p.SeedingCount, _ = strconv.Atoi(m[1])
}