formats

package
v0.0.0-...-396eacd Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteCBZ

func WriteCBZ(ctx context.Context, c *models.Chapter, w io.Writer) (err error)

WriteCBZ is where everything comes together and writes a CBZ file for a [Chapter] using the following steps

  1. Set the ZIP title using models.FullTitle
  2. Create and write the tmpl.ComicInfoXML file
  3. Fetch the image URLs from the API with models.FetchImageURL
  4. Loops through the image URLs calling shared.QueryImage in parallel
  5. Adds those files to the ZIP then closes

func WriteEpub

func WriteEpub(ctx context.Context, c *models.Chapter, w io.Writer) (err error)

WriteEpub will write an EPUB file for the current [Chapter] to the given io.Writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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