comics

package
v0.0.0-...-21c450d Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadStrip

func DownloadStrip(src string, dest string) error

DownloadStrip downloads strip image

func SanitizeFilename

func SanitizeFilename(filename string) string

SanitizeFilename replaces special characters from name

Types

type ComicStrip

type ComicStrip struct {
	ID           string `json:"id" storm:"id"`
	URL          string `json:"url" storm:"unique"`
	Name         string `json:"name"`
	WebcomicName string `json:"webcomic_name"`
	Order        int    `json:"order"`
	FileName     string `json:"file_name"`
}

ComicStrip is a single image

func (*ComicStrip) Download

func (s *ComicStrip) Download() (string, error)

Download downloads strip image

func (*ComicStrip) RelativeFilename

func (s *ComicStrip) RelativeFilename() string

RelativeFilename returns the strip relative file path

type Webcomic

type Webcomic struct {
	ID   int    `json:"id" storm:"id,increment"`
	Name string `json:"name" storm:"unique"`
}

Webcomic is the webcomic

Jump to

Keyboard shortcuts

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