Versions in this module Expand all Collapse all v0 v0.1.0 Jul 30, 2024 Changes in this version + const COVER + const METAFILE + const TAG_R18 + const TAG_VOICEASMR + var ErrExists = fmt.Errorf("metadata file already exists") + var ErrInvalid = fmt.Errorf("invalid metadada file") + var ErrNoNumber = fmt.Errorf("no number can be found") + var ErrNotFound = fmt.Errorf("work info not found in site, it may be deleted") + func GetNumberFromFilename(regexp *regexp.Regexp, filename string) string + func GetRename(originalname string, metadata *Metadata) (canonicalName string, shouldRename bool) + func Register(scraper *Scraper) + func WriteMetadata(metafile string, metadata *Metadata) error + type Metadata struct + Author string + CanonicalFilename string + Date string + Files []string + GeneratedBy string + Narrator []string + Number string + OtherEditionNumber []string + Series string + ShouldRename bool + Source string + Tags []string + Text string + Title string + YamlNarrator string + YamlOtherEditionNumber string + YamlTags string + func ReadMetadata(metafile string) (metadata *Metadata, err error) + func (m *Metadata) GetCanonicalFilename() (filename string) + type Scraper struct + Do func(filename string, tmpdir string) (*Metadata, error) + Name string + Pre func(filename string) bool + Version string + type Scrapes []*Scraper + func NewScrapers(names ...string) (Scrapes, error) + func (s Scrapes) Scrape(dirname string, tmpdir string, force bool) (*Metadata, error)