booklive

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: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrBookLiveUnknownCid  = errors.New("CID format not <title_id>_<volume>.")
	ErrBookLiveUnknownUrl  = errors.New("URL could not be parsed.")
	ErrBookLiveFailedLogin = errors.New("Failed to login. Wrong credentials?")
	ErrBookLiveLoginScreen = errors.New("Error while getting login token.")
)
View Source
var Plugin = BookLive{
	[]plugins.Option{
		&plugins.StringOption{K: "Username", Required: true},
		&plugins.StringOption{K: "Password", Required: true},
		&plugins.BoolOption{K: "Lossless", V: 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 with little improvement."},
		&plugins.BoolOption{K: "Metadata", V: true},
	},
}

Functions

This section is empty.

Types

type BookLive

type BookLive struct {
	// contains filtered or unexported fields
}

func (*BookLive) CanHandle

func (bl *BookLive) CanHandle(url string) bool

func (*BookLive) Cleanup added in v0.4.1

func (bl *BookLive) Cleanup(err error)

func (*BookLive) DownloadGenerator

func (bl *BookLive) DownloadGenerator(url string) (dlgen func() plugins.Downloader, length int)

func (*BookLive) Name

func (bl *BookLive) Name() string

func (*BookLive) Options

func (bl *BookLive) Options() []plugins.Option

func (*BookLive) Version

func (bl *BookLive) Version() string

Jump to

Keyboard shortcuts

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