packer

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const FilenameTemplateDefault = "{{.Series}} {{.Number}} - {{.Title}}"

FilenameTemplateDefault is the default filename template

Variables

This section is empty.

Functions

func ArchiveCBZ

func ArchiveCBZ(filename string, files []*downloader.File) error

ArchiveCBZ archives the given files into a CBZ file

func NewFilenameFromTemplate added in v0.0.6

func NewFilenameFromTemplate(title string, chapter *grabber.Chapter, templ string) (string, error)

NewFilenameFromTemplate returns a new filename from a series title, a chapter and a template

func SanitizeFilename added in v0.0.6

func SanitizeFilename(filename string) string

SanitizeFilename sanitizes a filename

Types

type FilenameTemplateParts added in v0.0.6

type FilenameTemplateParts struct {
	Series string
	Number string
	Title  string
}

FilenameTemplateParts represents the parts of a filename

func NewFilenameTemplateParts added in v0.0.6

func NewFilenameTemplateParts(title string, chapter *grabber.Chapter) FilenameTemplateParts

NewFilenameTemplateParts returns a new FilenameTemplateParts from a title and a chapter

Jump to

Keyboard shortcuts

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