Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Doujin ¶
type Doujin struct { ID json.Number `json:"id"` MediaID string `json:"media_id"` NumPages int `json:"num_pages"` Images struct { Cover image `json:"cover"` Thumbnail image `json:"thumbnail"` Pages []image `json:"pages"` } `json:"images"` Titles struct { English string `json:"english"` Japanese string `json:"japanese"` Pretty string `json:"pretty"` } `json:"title"` APIImages []Image }
Doujin a quick struct for unpacking the response from the nhentai API. Used for responses from nhentai.net/api/galleries/:magicNumber
func NewDoujin ¶
NewDoujin is used to generate a doujin instance with Image instances attached at APIImages
func (Doujin) DownloadZip ¶
DownloadZip is used to pull the Doujin to disk as {doujin.Title.English}.cbz
Click to show internal directories.
Click to hide internal directories.