aboutsummaryrefslogtreecommitdiff
path: root/search.go
diff options
context:
space:
mode:
Diffstat (limited to 'search.go')
-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) {