resolvers

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2024 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const UA = "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.27 Safari/537.36"

Variables

View Source
var Resolvers = newResolverMap()

Functions

This section is empty.

Types

type HAnime

type HAnime struct {
	URL    string
	Site   string
	Title  string
	Videos map[string]*Video
}

func Resolve

func Resolve(u string, opt *Option) ([]*HAnime, error)

type Option

type Option struct {
	Series   bool
	PlayList bool
}

type Resolver

type Resolver interface {
	Resolve(u string, opt *Option) ([]*HAnime, error)
}

type ResolverMap

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

func (*ResolverMap) Register

func (r *ResolverMap) Register(domain string, resolver Resolver)

type Video

type Video struct {
	ID      string
	Quality string
	URL     string
	IsM3U8  bool
	Title   string
	Size    int64
	Ext     string
}

func SortAniVideos

func SortAniVideos(videos map[string]*Video, asc bool) []*Video

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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