aboutsummaryrefslogtreecommitdiff
path: root/mal/search.go
diff options
context:
space:
mode:
authorVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-04 02:20:19 +0530
committerVidhu Kant Sharma <vidhukant@vidhukant.xyz>2022-07-04 02:20:19 +0530
commit1cac547f4aa9d15a56281c4b5a9db5e8f3d97c47 (patch)
tree675023739bfcb3035a7a54bb06e28f440c9b4422 /mal/search.go
parent9228897f84d898a7736f1f6df9b2aac005a89514 (diff)
added anime info with searching
Diffstat (limited to 'mal/search.go')
-rw-r--r--mal/search.go9
1 files changed, 8 insertions, 1 deletions
diff --git a/mal/search.go b/mal/search.go
index c010112..32df60f 100644
--- a/mal/search.go
+++ b/mal/search.go
@@ -26,7 +26,14 @@ import (
)
func SearchAnime(searchString string) []a.Anime {
- fields := []string{"title", "id", "my_list_status"}
+ fields := []string{
+ "title", "id", "num_episodes",
+ "synopsis", "alternative_titles",
+ "start_date", "end_date", "mean",
+ "start_season", "rank", "media_type",
+ "status", "average_episode_duration",
+ "rating", "studios",
+ }
res, err := animeClient.SearchAnime(searchString, SearchLength, SearchOffset, SearchNSFW, fields)
if err != nil {