AID AID // The Anime ID.
R18 bool // Whether this anime is considered porn.
- Type AnimeType // Production/distribution type.
- TotalEpisodes int // Total number of regular episodes.
- EpisodeCount EpisodeCount // Known numbers of the various types of episodes.
+ Type AnimeType // Production/distribution type.
+ TotalEpisodes int // Total number of regular episodes.
+ EpisodeCount misc.EpisodeCount // Known numbers of the various types of episodes.
StartDate time.Time // Date of first episode release, if available.
EndDate time.Time // Date of last episode release, if available.
Cached time.Time // When the data was retrieved from the server.
}
-type EpisodeCount struct {
- RegularCount int
- SpecialCount int
- CreditsCount int
- OtherCount int
- TrailerCount int
- ParodyCount int
-}
-
// Convenience method that runs AnimeByID on the result of
// SearchAnime.
func (adb *AniDB) AnimeByName(name string) <-chan *Anime {
a.Episodes = append(a.Episodes, e)
}
- a.EpisodeCount = EpisodeCount{
+ a.EpisodeCount = misc.EpisodeCount{
RegularCount: counts[misc.EpisodeTypeRegular],
SpecialCount: counts[misc.EpisodeTypeSpecial],
CreditsCount: counts[misc.EpisodeTypeCredits],
"strings"
)
+type EpisodeCount struct {
+ RegularCount int
+ SpecialCount int
+ CreditsCount int
+ OtherCount int
+ TrailerCount int
+ ParodyCount int
+}
+
type EpisodeList []*EpisodeRange
// Converts the EpisodeList into the AniDB API list format.