nhentai

package
v0.72.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2025 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorInvalidNhentaiURL  = errors.New("invalid nhentai url")
	ErrNhentaiResponseError = errors.New("nhentai response error")
)

Functions

func GetGalleryID

func GetGalleryID(url string) string

Types

type Nhentai

type Nhentai struct{}

func (*Nhentai) Config

func (n *Nhentai) Config() *config.SourceCommonConfig

func (*Nhentai) FetchNewArtworks

func (n *Nhentai) FetchNewArtworks(limit int) ([]*types.Artwork, error)

func (*Nhentai) FetchNewArtworksWithCh

func (n *Nhentai) FetchNewArtworksWithCh(artworkCh chan *types.Artwork, limit int) error

func (*Nhentai) GetArtworkInfo

func (n *Nhentai) GetArtworkInfo(sourceURL string) (*types.Artwork, error)

func (*Nhentai) GetCommonSourceURL

func (n *Nhentai) GetCommonSourceURL(url string) string

func (*Nhentai) GetFileName

func (n *Nhentai) GetFileName(artwork *types.Artwork, picture *types.Picture) string

func (*Nhentai) GetPictureInfo

func (n *Nhentai) GetPictureInfo(sourceURL string, i uint) (*types.Picture, error)

func (*Nhentai) GetSourceURLRegexp

func (n *Nhentai) GetSourceURLRegexp() *regexp.Regexp

func (*Nhentai) Init

func (n *Nhentai) Init(_ types.Service)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL