Documentation ¶
Overview ¶
A helper package to make calls to the API served by BinB Reader.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var StaticImageSizes = []string{"M_H", "S_H", "M_L", "S_L"}
The various image sizes. Presumably:
M/S = Medium/Small resolution H/L = High/Low quality
There's also SS, but it's unscrambled and extremely low resoution and quality. If you really want SS, use get_nec_image with regular filenames. L has pretty bad artifacting, so most of the time S_H > M_L. I've never seen anything over M, so for now I'm assuming it doesn't exist.
Functions ¶
This section is empty.
Types ¶
type Api ¶
type Api struct {
Bib, Cid, ContentServer string
ContentInfo *ContentInfoResponse
Content *ContentResponse
Descrambler *Descrambler
Pages, FullPages []string
K string
ServerType ContentServerType
Session *http.Client
Params ParamsGetter
}
func (*Api) GetContent ¶
func (*Api) GetContentInfo ¶
type ContentInfoResponse ¶
type ContentResponse ¶
type ContentServerType ¶
type ContentServerType int
The API doesn't always serve images over the API, but often redirects to a CDN.
const ( ServerTypeUnset ContentServerType = iota - 1 ServerTypeSbc // means the images should be downloaded through the provided sbc API ServerTypeStatic // means the images should be downloaded directly from the provided CDN )
type Descrambler ¶
type Descrambler struct {
Ctbl, Ptbl []string
// contains filtered or unexported fields
}
func NewDescrambler ¶
func NewDescrambler(ctbl, ptbl []string) (*Descrambler, error)
func (*Descrambler) Descramble ¶
type Response ¶
type Response struct { Result int Items []json.RawMessage }
Click to show internal directories.
Click to hide internal directories.