mirror of
https://github.com/ultrasn0w/huso.git
synced 2025-12-14 07:19:52 +01:00
POST watching
This commit is contained in:
220
klotz.go
220
klotz.go
@@ -127,6 +127,116 @@ type SeasonMal struct {
|
||||
} `json:"season"`
|
||||
}
|
||||
|
||||
type SeasonAnimeJikan struct {
|
||||
MalID int64 `json:"mal_id"`
|
||||
URL string `json:"url"`
|
||||
Images struct {
|
||||
Jpg struct {
|
||||
ImageURL string `json:"image_url"`
|
||||
SmallImageURL string `json:"small_image_url"`
|
||||
LargeImageURL string `json:"large_image_url"`
|
||||
} `json:"jpg"`
|
||||
Webp struct {
|
||||
ImageURL string `json:"image_url"`
|
||||
SmallImageURL string `json:"small_image_url"`
|
||||
LargeImageURL string `json:"large_image_url"`
|
||||
} `json:"webp"`
|
||||
} `json:"images"`
|
||||
Trailer struct {
|
||||
YoutubeID string `json:"youtube_id"`
|
||||
URL string `json:"url"`
|
||||
EmbedURL string `json:"embed_url"`
|
||||
Images struct {
|
||||
ImageURL string `json:"image_url"`
|
||||
SmallImageURL string `json:"small_image_url"`
|
||||
MediumImageURL string `json:"medium_image_url"`
|
||||
LargeImageURL string `json:"large_image_url"`
|
||||
MaximumImageURL string `json:"maximum_image_url"`
|
||||
} `json:"images"`
|
||||
} `json:"trailer"`
|
||||
Title string `json:"title"`
|
||||
TitleEnglish string `json:"title_english"`
|
||||
TitleJapanese string `json:"title_japanese"`
|
||||
TitleSynonyms []string `json:"title_synonyms"`
|
||||
Type string `json:"type"`
|
||||
Source string `json:"source"`
|
||||
Episodes int `json:"episodes"`
|
||||
Status string `json:"status"`
|
||||
Airing bool `json:"airing"`
|
||||
Aired struct {
|
||||
From time.Time `json:"from"`
|
||||
To time.Time `json:"to"`
|
||||
Prop struct {
|
||||
From struct {
|
||||
Day int `json:"day"`
|
||||
Month int `json:"month"`
|
||||
Year int `json:"year"`
|
||||
} `json:"from"`
|
||||
To struct {
|
||||
Day int `json:"day"`
|
||||
Month int `json:"month"`
|
||||
Year int `json:"year"`
|
||||
} `json:"to"`
|
||||
} `json:"prop"`
|
||||
String string `json:"string"`
|
||||
} `json:"aired"`
|
||||
Duration string `json:"duration"`
|
||||
Rating string `json:"rating"`
|
||||
Score float64 `json:"score"`
|
||||
ScoredBy int `json:"scored_by"`
|
||||
Rank int `json:"rank"`
|
||||
Popularity int `json:"popularity"`
|
||||
Members int `json:"members"`
|
||||
Favorites int `json:"favorites"`
|
||||
Synopsis string `json:"synopsis"`
|
||||
Background string `json:"background"`
|
||||
Season string `json:"season"`
|
||||
Year int `json:"year"`
|
||||
Broadcast struct {
|
||||
Day string `json:"day"`
|
||||
Time string `json:"time"`
|
||||
Timezone string `json:"timezone"`
|
||||
String string `json:"string"`
|
||||
} `json:"broadcast"`
|
||||
Producers []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"producers"`
|
||||
Licensors []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"licensors"`
|
||||
Studios []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"studios"`
|
||||
Genres []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"genres"`
|
||||
ExplicitGenres []interface{} `json:"explicit_genres"`
|
||||
Themes []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"themes"`
|
||||
Demographics []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"demographics"`
|
||||
}
|
||||
|
||||
type SeasonJikan struct {
|
||||
Pagination struct {
|
||||
LastVisiblePage int `json:"last_visible_page"`
|
||||
@@ -138,113 +248,5 @@ type SeasonJikan struct {
|
||||
PerPage int `json:"per_page"`
|
||||
} `json:"items"`
|
||||
} `json:"pagination"`
|
||||
Data []struct {
|
||||
MalID int64 `json:"mal_id"`
|
||||
URL string `json:"url"`
|
||||
Images struct {
|
||||
Jpg struct {
|
||||
ImageURL string `json:"image_url"`
|
||||
SmallImageURL string `json:"small_image_url"`
|
||||
LargeImageURL string `json:"large_image_url"`
|
||||
} `json:"jpg"`
|
||||
Webp struct {
|
||||
ImageURL string `json:"image_url"`
|
||||
SmallImageURL string `json:"small_image_url"`
|
||||
LargeImageURL string `json:"large_image_url"`
|
||||
} `json:"webp"`
|
||||
} `json:"images"`
|
||||
Trailer struct {
|
||||
YoutubeID string `json:"youtube_id"`
|
||||
URL string `json:"url"`
|
||||
EmbedURL string `json:"embed_url"`
|
||||
Images struct {
|
||||
ImageURL string `json:"image_url"`
|
||||
SmallImageURL string `json:"small_image_url"`
|
||||
MediumImageURL string `json:"medium_image_url"`
|
||||
LargeImageURL string `json:"large_image_url"`
|
||||
MaximumImageURL string `json:"maximum_image_url"`
|
||||
} `json:"images"`
|
||||
} `json:"trailer"`
|
||||
Title string `json:"title"`
|
||||
TitleEnglish string `json:"title_english"`
|
||||
TitleJapanese string `json:"title_japanese"`
|
||||
TitleSynonyms []string `json:"title_synonyms"`
|
||||
Type string `json:"type"`
|
||||
Source string `json:"source"`
|
||||
Episodes int `json:"episodes"`
|
||||
Status string `json:"status"`
|
||||
Airing bool `json:"airing"`
|
||||
Aired struct {
|
||||
From time.Time `json:"from"`
|
||||
To time.Time `json:"to"`
|
||||
Prop struct {
|
||||
From struct {
|
||||
Day int `json:"day"`
|
||||
Month int `json:"month"`
|
||||
Year int `json:"year"`
|
||||
} `json:"from"`
|
||||
To struct {
|
||||
Day int `json:"day"`
|
||||
Month int `json:"month"`
|
||||
Year int `json:"year"`
|
||||
} `json:"to"`
|
||||
} `json:"prop"`
|
||||
String string `json:"string"`
|
||||
} `json:"aired"`
|
||||
Duration string `json:"duration"`
|
||||
Rating string `json:"rating"`
|
||||
Score float64 `json:"score"`
|
||||
ScoredBy int `json:"scored_by"`
|
||||
Rank int `json:"rank"`
|
||||
Popularity int `json:"popularity"`
|
||||
Members int `json:"members"`
|
||||
Favorites int `json:"favorites"`
|
||||
Synopsis string `json:"synopsis"`
|
||||
Background string `json:"background"`
|
||||
Season string `json:"season"`
|
||||
Year int `json:"year"`
|
||||
Broadcast struct {
|
||||
Day string `json:"day"`
|
||||
Time string `json:"time"`
|
||||
Timezone string `json:"timezone"`
|
||||
String string `json:"string"`
|
||||
} `json:"broadcast"`
|
||||
Producers []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"producers"`
|
||||
Licensors []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"licensors"`
|
||||
Studios []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"studios"`
|
||||
Genres []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"genres"`
|
||||
ExplicitGenres []interface{} `json:"explicit_genres"`
|
||||
Themes []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"themes"`
|
||||
Demographics []struct {
|
||||
MalID int `json:"mal_id"`
|
||||
Type string `json:"type"`
|
||||
Name string `json:"name"`
|
||||
URL string `json:"url"`
|
||||
} `json:"demographics"`
|
||||
} `json:"data"`
|
||||
Data []SeasonAnimeJikan `json:"data"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user