ebookjapan

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2016 License: AGPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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