parser

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CollapseSpaces added in v1.1.1

func CollapseSpaces(s string) string

func Drop1stArticle added in v1.0.0

func Drop1stArticle(s string) string

func FirstGenre added in v1.0.0

func FirstGenre(s string) string

func FullName added in v1.0.0

func FullName(s string) string

func GetLanguageTag added in v1.0.0

func GetLanguageTag(lang string) language.Tag

func Keywords added in v1.0.0

func Keywords(s string) string

func LastNameFirst added in v1.0.0

func LastNameFirst(fullName string) (s string)

func Lower added in v1.0.0

func Lower(s, lang string) string

func NewDecoder added in v1.0.0

func NewDecoder(rc io.ReadCloser) *xml.Decoder

func PickYear added in v1.0.0

func PickYear(s string) string

func RefineName added in v1.0.0

func RefineName(n, lang string) string

func StripHTMLTags added in v1.1.0

func StripHTMLTags(s string) string

func Title added in v1.0.0

func Title(s, lang string) string

func Upper added in v1.0.0

func Upper(s, lang string) string

Types

type Parser

type Parser interface {
	GetFormat() string
	GetTitle() string
	GetSort() string
	GetYear() string
	GetPlot() string
	GetCover() string
	GetLanguage() *model.Language
	GetAuthors() []*model.Author
	GetGenres() []string
	GetKeywords() string
	GetSerie() *model.Serie
	GetSerieNumber() int
}

Jump to

Keyboard shortcuts

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