Documentation
¶
Index ¶
- Variables
- func ExtractPDF()
- func GenerateThumbnails(pages bool, force bool)
- func InitCache()
- func PathExists(pathTo string) bool
- func ReadAll(fsys fs.FS, filename string) ([]byte, error)
- func ReadArchiveImages(archivePath string, galleryUUID string, onlyCover bool)
- func ReadGallery(archivePath string, uuid string) ([]string, int)
- func ReadJSON(jsonFile string) ([]byte, error)
- func ScanArchives()
- func Similarity(a string, b string) float64
- func UniversalExtract(dst string, archivePath string) ([]string, int)
Constants ¶
This section is empty.
Variables ¶
View Source
var ArchiveExtensions = regexp.MustCompile(`\.(?:zip|cbz|rar|cbr|7z)$`)
View Source
var ImageExtensions = regexp.MustCompile(`\.(?:jpe?g|png|webp|bmp|gif|tiff)$`)
View Source
var MetaExtensions = regexp.MustCompile(`\.(?:json|txt)$`)
Functions ¶
func ExtractPDF ¶
func ExtractPDF()
func GenerateThumbnails ¶
GenerateThumbnails generates thumbnails for covers and pages in parallel.
func PathExists ¶
func ReadArchiveImages ¶ added in v0.3.0
ReadArchiveImages reads given archive ands generates thumbnails for found images. If onlyCover is true, only covers are generated and the name of cover is saved to db, otherwise covers are generated.
func ScanArchives ¶
func ScanArchives()
func Similarity ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.