manga

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Chapter

type Chapter struct {
	ID        string  // Unique identifier for the chapter (can be different per source)
	SortNum   float64 // Number used for sorting chapters
	RawTitle  string  // Title straight from source (without Chapter xx)
	FullTitle string  // Title including groups/language/etc
	Metadata  Metadata
	// contains filtered or unexported fields
}

func (*Chapter) AddPage

func (c *Chapter) AddPage(url, name string)

func (*Chapter) Filename

func (c *Chapter) Filename() string

func (*Chapter) Pages

func (c *Chapter) Pages() []Page

func (*Chapter) SetFilename

func (c *Chapter) SetFilename(name string)

type Metadata

type Metadata struct {
	Title    string   // Title seen by user in reader (not filename)
	Num      string   // Num string for chapter (eg. 20, 20.5)
	Language string   // Language of chapter (will be converted to, but NOT currently, ISO format)
	Date     string   // Date of release (no date structure is assumed)
	Link     string   // Link to chapter
	Groups   []string // Groups that release/scanlated chapter
}

type Page

type Page struct {
	Url, Name string
	Ext       string // file extension from MIME type
}

func (*Page) Filename

func (p *Page) Filename() string

func (*Page) GetExtFromBytes

func (p *Page) GetExtFromBytes(pageBytes []byte) error

Jump to

Keyboard shortcuts

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