feat(jikan): add advanced search and video episodes support

This commit is contained in:
2026-05-01 17:26:53 +02:00
committed by Mikkel Elvers
parent 6bdf3344d2
commit 394aad7793
3 changed files with 71 additions and 6 deletions

View File

@@ -52,6 +52,7 @@ type Anime struct {
Status string `json:"status"`
Airing bool `json:"airing"`
Episodes int `json:"episodes"`
Score float64 `json:"score"`
Season string `json:"season"`
Year int `json:"year"`
Type string `json:"type"`
@@ -157,10 +158,16 @@ type TopAnimeResponse struct {
}
type Episode struct {
MalID int `json:"mal_id"`
Title string `json:"title"`
Filler bool `json:"filler"`
Recap bool `json:"recap"`
MalID int `json:"mal_id"`
Title string `json:"title"`
Episode string `json:"episode"`
Filler bool `json:"filler"`
Recap bool `json:"recap"`
Images *struct {
Jpg struct {
ImageURL string `json:"image_url"`
} `json:"jpg"`
} `json:"images,omitempty"`
}
type EpisodesResponse struct {