mangareader

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 23, 2020 License: MIT Imports: 3 Imported by: 0

README

mangareader

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsURLValid

func IsURLValid(value string) bool

IsURLValid will exclude those url containing `.gif` and `logo`.

func TrimAndSplitURL

func TrimAndSplitURL(u string) []string

Types

type Comic

type Comic struct {
	Author       string
	Name         string
	IssueNumber  string
	Source       string
	URLSource    string
	Links        []string
	Format       string
	ImagesFormat string
}

type Mangareader

type Mangareader struct{}

func (*Mangareader) GetInfo

func (m *Mangareader) GetInfo(url string) (string, string)

func (*Mangareader) Initialize

func (m *Mangareader) Initialize(comic *Comic) error

Initialize loads links and metadata from mangareader

func (*Mangareader) IsSingleIssue

func (m *Mangareader) IsSingleIssue(url string) bool

func (*Mangareader) Latest

func (m *Mangareader) Latest() ([]string, error)
func (m *Mangareader) RetrieveImageLinks(comic *Comic) ([]string, error)
func (m *Mangareader) RetrieveIssueLinks(url string, all, last bool) ([]string, error)

RetrieveIssueLinks gets a slice of urls for all issues in a comic

func (*Mangareader) RetrieveLastIssue

func (m *Mangareader) RetrieveLastIssue(url string) (string, error)

Jump to

Keyboard shortcuts

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