From c10fb3398376c7f6ccbbc676973832b34abef713 Mon Sep 17 00:00:00 2001 From: Vidhu Kant Sharma Date: Tue, 28 May 2024 21:50:14 +0530 Subject: getting anime title from a title attribute instead of inner html because it contains unrelated data --- search.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search.go b/search.go index acb611e..2c9d40d 100644 --- a/search.go +++ b/search.go @@ -42,7 +42,7 @@ func Search(q SearchQuery) ([]Entry, error) { entry.Category = e.ChildAttr("a", "title") case 1: entry.URL = e.ChildAttr("a", "href") - entry.Title = e.ChildText("a") + entry.Title = e.ChildAttr("a", "title") case 2: e.ForEach("a", func(_ int, e *colly.HTMLElement) { switch(e.Index) { -- cgit v1.2.3