cbz

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectChapters

func DetectChapters(files []string) []mediafile.ParsedChapter

DetectChapters detects chapters from a list of image file paths. Uses folder-based detection first, falls back to filename patterns.

func Parse

func Parse(path string) (*mediafile.ParsedMetadata, error)

Types

type ComicInfo

type ComicInfo struct {
	XMLName         xml.Name `xml:"ComicInfo"`
	Title           string   `xml:"Title"`
	Series          string   `xml:"Series"`
	Number          string   `xml:"Number"`
	Volume          string   `xml:"Volume"`
	Year            string   `xml:"Year"`
	Month           string   `xml:"Month"`
	Day             string   `xml:"Day"`
	Writer          string   `xml:"Writer"`
	Penciller       string   `xml:"Penciller"`
	Inker           string   `xml:"Inker"`
	Colorist        string   `xml:"Colorist"`
	Letterer        string   `xml:"Letterer"`
	CoverArtist     string   `xml:"CoverArtist"`
	Editor          string   `xml:"Editor"`
	Translator      string   `xml:"Translator"`
	Publisher       string   `xml:"Publisher"`
	Imprint         string   `xml:"Imprint"`
	Summary         string   `xml:"Summary"`
	Web             string   `xml:"Web"`
	Genre           string   `xml:"Genre"`
	Tags            string   `xml:"Tags"`
	Characters      string   `xml:"Characters"`
	Teams           string   `xml:"Teams"`
	Locations       string   `xml:"Locations"`
	StoryArc        string   `xml:"StoryArc"`
	AgeRating       string   `xml:"AgeRating"`
	CommunityRating string   `xml:"CommunityRating"`
	PageCount       string   `xml:"PageCount"`
	LanguageISO     string   `xml:"LanguageISO"`
	Format          string   `xml:"Format"`
	BlackAndWhite   string   `xml:"BlackAndWhite"`
	Manga           string   `xml:"Manga"`
	GTIN            string   `xml:"GTIN"`
	Pages           struct {
		Page []ComicPageInfo `xml:"Page"`
	} `xml:"Pages"`
}

func ParseComicInfo

func ParseComicInfo(r io.ReadCloser) (*ComicInfo, error)

type ComicPageInfo

type ComicPageInfo struct {
	Image       string `xml:"Image,attr"`
	Type        string `xml:"Type,attr"`
	DoublePage  string `xml:"DoublePage,attr"`
	ImageSize   string `xml:"ImageSize,attr"`
	ImageWidth  string `xml:"ImageWidth,attr"`
	ImageHeight string `xml:"ImageHeight,attr"`
}

Jump to

Keyboard shortcuts

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