aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.com>2024-05-28 21:50:14 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.com>2024-05-28 21:50:14 +0530
commitc10fb3398376c7f6ccbbc676973832b34abef713 (patch)
tree578cae43c0b84bf9f2bafba22bc15ca65f1d9de5
parent3258fa37069fadcf6f265d507c30536e8e9fa091 (diff)
getting anime title from a title attribute instead of inner html because it contains unrelated datav1.2.0
-rw-r--r--search.go2
1 files changed, 1 insertions, 1 deletions
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) {