diff options
author | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-05-28 21:50:14 +0530 |
---|---|---|
committer | Vidhu Kant Sharma <vidhukant@vidhukant.com> | 2024-05-28 21:50:14 +0530 |
commit | c10fb3398376c7f6ccbbc676973832b34abef713 (patch) | |
tree | 578cae43c0b84bf9f2bafba22bc15ca65f1d9de5 | |
parent | 3258fa37069fadcf6f265d507c30536e8e9fa091 (diff) |
getting anime title from a title attribute instead of inner html because it contains unrelated datav1.2.0
-rw-r--r-- | search.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |