Documentation ¶
Overview ¶
Package importer parses specific .NFO and file_id.DIZ file group-packs submitted as .rar archives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Importer ¶
type Stat ¶
type Stat struct { Name string // Name of the RAR archive file. Group string // Group for the collection. GroupPath string // GroupPath is the directory path used for the group. DestOpen string // DestOpen is the temp destination path for the extracted files. DestUUID string // DestUUID is the temp destination path for the created UUID files. DIZs int // DIZs file_id.diz count. NFOs int // NFOs count. Others int // Other types of files count. LastMods Years // LastMods counts the last modified years. SubDirs map[string]SubDirectory // Releases lists every release included in the RAR archive. }
Stat the collection of NFO and file_id.diz files within an RAR archive.
func (*Stat) Create ¶
Create a collection of records based on the extracted sub-directories, of the imported RAR file archive.
type SubDirectory ¶
type SubDirectory struct { Title string // Title for the subdirectory. Diz []byte // The body of an included file_id.diz file. Nfo []byte // The body of a root information text file. Files []string // Files named that are included in the subdirectory. LastMods []time.Time // The file last modification times of the Files. Publish time.Time // The earliest file last modification time found in the subdirectory. Path string // Path of the subdirectory. Readme string // Readme is the filename of the information file for display. UUID string // UUID is the new unique id for the subdirectory. Filename string // Filename for the UUID download. }
SubDirectory of the RAR archive.
func (SubDirectory) Zip ¶
func (sub SubDirectory) Zip(l *zap.SugaredLogger, dst string, sources ...string) (written int64, err error)
Zip creates an uncompressed zip archive at dst using the named file sources.
Directories ¶
Path | Synopsis |
---|---|
Package record creates an object that can be written as JSON or used as a new database record.
|
Package record creates an object that can be written as JSON or used as a new database record. |
Package zwt handles the .rar for the group Zero Waiting Time (ZWT).
|
Package zwt handles the .rar for the group Zero Waiting Time (ZWT). |
Click to show internal directories.
Click to hide internal directories.