Fixed Simkl Bugs

This commit is contained in:
2024-08-18 17:23:09 -04:00
parent 6ebf5ac48e
commit 4d9012b43c
13 changed files with 280 additions and 157 deletions

View File

@ -27,10 +27,10 @@ type SimklUser struct {
}
type SimklWatchList struct {
Anime []Anime `json:"anime" ts_type:"anime"`
Anime []SimklAnime `json:"anime" ts_type:"anime"`
}
type Anime struct {
type SimklAnime struct {
LastWatchedAt string `json:"last_watched_at" ts_type:"last_watched_at"`
Status string `json:"status" ts_type:"status"`
UserRating float64 `json:"user_rating" ts_type:"user_rating"`
@ -105,3 +105,17 @@ type SimklShowStatus struct {
Ids `json:"ids" ts_type:"ids"`
To string `json:"to" ts_type:"to"`
}
type SimklSearchType []struct {
Type string `json:"type"`
Title string `json:"title"`
Poster string `json:"poster"`
Year int `json:"year"`
Status string `json:"status"`
Ids struct {
Simkl int `json:"simkl"`
Slug string `json:"slug"`
} `json:"ids"`
TotalEpisodes int `json:"total_episodes"`
AnimeType string `json:"anime_type"`
}