Documentation
¶
Index ¶
- Variables
- func Extract7z()
- func ExtractPDF()
- func GenerateThumbnails(pages bool, force bool)
- func InitCache()
- func PathExists(pathTo string) bool
- func ReadArchiveInternalMeta(archivePath string) ([]byte, string)
- 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)$`)
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 ReadArchiveInternalMeta ¶
ReadArchiveInternalMeta reads the internal metadata (info.json or info.txt) from an archive
func ScanArchives ¶
func ScanArchives()
func Similarity ¶
func UniversalExtract ¶
UniversalExtract extracts media files from zip, cbz, rar, cbr, tar (all its variants) archives. Plain directories without compression are also supported. For 7zip and PDF see Extract7z and ExtractPDF respectively.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.