package entities // AudioBook представляет аудиокнигу type AudioBook struct { Path string Title string MP3Files []string CoverFile string Description string Metadata *AudioBookMetadata } // AudioBookMetadata метаданные аудиокниги type AudioBookMetadata struct { Tags []string `json:"tags"` Chapters []Chapter `json:"chapters"` Title string `json:"title"` Subtitle string `json:"subtitle"` Authors []string `json:"authors"` Narrators []string `json:"narrators"` Series []string `json:"series"` Genres []string `json:"genres"` PublishedYear *int `json:"publishedYear"` PublishedDate *string `json:"publishedDate"` Publisher *string `json:"publisher"` Description string `json:"description"` ISBN *string `json:"isbn"` ASIN *string `json:"asin"` Language string `json:"language"` Explicit bool `json:"explicit"` Abridged bool `json:"abridged"` } // Chapter представляет главу аудиокниги type Chapter struct { ID int `json:"id"` Start float64 `json:"start"` End float64 `json:"end"` Title string `json:"title"` Duration int `json:"duration"` // в секундах }