Documentation ¶
Index ¶
- Variables
- type EBookJapan
- func (ebj *EBookJapan) CanHandle(url string) bool
- func (ebj *EBookJapan) Cleanup(err error)
- func (ebj *EBookJapan) DownloadGenerator(url string) (dlgen func() plugins.Downloader, length int)
- func (ebj *EBookJapan) Name() string
- func (ebj *EBookJapan) Options() []plugins.Option
- func (ebj *EBookJapan) Version() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrEBJPhantomJSNotFound = errors.New("Could not find the PhantomJS executable.") ErrEBJNoLoad = errors.New("The reader did not load nor raise any errors.") ErrEBJNoData = errors.New("Page data did not return before the time limit.") )
View Source
var Plugin = EBookJapan{ []plugins.Option{ plugins.NewForceMaxWorkersOption(1), &plugins.BoolOption{K: "Lossless", V: false, Required: false, C: "If set to true, save as PNG. Original images are in JPEG, so you can't escape some artifacts even with this on."}, &plugins.IntOption{K: "JPEGQuality", V: 95, C: "Does nothing if Lossless is on. >95 not adviced, as it increases file size a ton for little improvement."}, &plugins.IntOption{K: "PrefetchCount", V: 5, C: "How many pages should be prefetched. The higher, the faster downloads, but also more RAM and CPU usage."}, }, }
Functions ¶
This section is empty.
Types ¶
type EBookJapan ¶
type EBookJapan struct {
// contains filtered or unexported fields
}
func (*EBookJapan) CanHandle ¶
func (ebj *EBookJapan) CanHandle(url string) bool
func (*EBookJapan) Cleanup ¶ added in v0.4.1
func (ebj *EBookJapan) Cleanup(err error)
func (*EBookJapan) DownloadGenerator ¶
func (ebj *EBookJapan) DownloadGenerator(url string) (dlgen func() plugins.Downloader, length int)
func (*EBookJapan) Name ¶
func (ebj *EBookJapan) Name() string
func (*EBookJapan) Options ¶
func (ebj *EBookJapan) Options() []plugins.Option
func (*EBookJapan) Version ¶
func (ebj *EBookJapan) Version() string
Click to show internal directories.
Click to hide internal directories.