metadata

package
v1.11.1 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 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 ChapterProvider

type ChapterProvider interface {
	Title() string
	Number() string
	Volume() string
	Language() string
	PagesCount() int
}

type ComicBookInfo

type ComicBookInfo struct {
	Series    string   `json:"series"`
	Title     string   `json:"title"`
	Publisher string   `json:"publisher"`
	Issue     string   `json:"issue"`
	Volume    string   `json:"volume"`
	Language  string   `json:"language"`
	Credits   []Credit `json:"credits"`
	Tags      []string `json:"tags"`
}

type ComicBookMetadata

type ComicBookMetadata struct {
	AppID             string        `json:"appID"`
	LastModified      string        `json:"lastModified"`
	ComicBookInfoData ComicBookInfo `json:"ComicBookInfo/1.0"`
}

type ComicInfoMetadata

type ComicInfoMetadata struct {
	XMLName     xml.Name `xml:"ComicInfo"`
	Title       string   `xml:"Title"`
	Number      string   `xml:"Number,omitempty"`
	Volume      string   `xml:"Volume,omitempty"`
	Year        int      `xml:"Year"`
	Writer      string   `xml:"Writer"`
	Penciller   string   `xml:"Penciller"`
	Inker       string   `xml:"Inker"`
	Publisher   string   `xml:"Publisher"`
	PageCount   int      `xml:"PageCount"`
	LanguageISO string   `xml:"LanguageISO"`
	Format      string   `xml:"Format"`
	Manga       string   `xml:"Manga"`
	Summary     string   `xml:"Summary"`
}

type Credit

type Credit struct {
	Person string `json:"person"`
	Role   string `json:"role"`
}

type MangaProvider

type MangaProvider interface {
	Title(language string) string
	Description(language string) string
	Publisher() string
	Year() int
	AuthorsArr() []string
	Authors() string
	ArtistsArr() []string
	Artists() string
	TagsArr() []string
	Tags() string
	LinksArr() []string
	Links() string
}

type Metadata added in v1.3.0

type Metadata struct {
	// ComicBookInfo format
	CBI ComicBookMetadata
	// ComicRack old metadata
	CI ComicInfoMetadata
	// Plain metadata
	P PlainMetadata
}

func NewMetadata added in v1.3.0

func NewMetadata(appId string, m MangaProvider, c ChapterProvider) Metadata

type PlainMetadata added in v1.3.0

type PlainMetadata struct {
	Authors string
	Artists string
	Tags    string
}

Jump to

Keyboard shortcuts

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