Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIClient ¶ added in v0.1.6
type APIClient struct { BaseURL string Client *http.Client Artist bool // Buffer chan zipImage Limit chan struct{} }
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"` Tags []struct { ID json.Number `json:"id"` Type string `json:"type"` Name string `json:"name"` } `json:"tags"` APIImages []Image Client *APIClient }
Doujin a quick struct for unpacking the response from the nhentai API. Used for responses from nhentai.net/api/galleries/:magicNumber
func (Doujin) DownloadZip ¶
func (d 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.