nzbdav

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtractedFileInfo

type ExtractedFileInfo struct {
	Name string
	Size int64
}

type ParsedNzb

type ParsedNzb struct {
	ID             string
	Category       string
	Name           string
	RelPath        string
	Content        io.Reader
	ExtractedFiles []ExtractedFileInfo
	// DavItemName is the DavItem.Name for the canonical DavItem (may be empty for
	// legacy parseLegacy items or when Name is unavailable in the DB).
	DavItemName string
	// AliasDavItems contains other DavItems that share the same NZB blob.
	// Non-empty only for multi-file season-pack blobs where each DavItem
	// represents a distinct episode file.
	AliasDavItems []ParsedNzbAlias
}

type ParsedNzbAlias added in v0.3.0

type ParsedNzbAlias struct {
	ID   string // DavItem.Id
	Name string // DavItem.Name (episode filename)
}

ParsedNzbAlias represents a DavItem that shares the same NZB blob as the canonical ParsedNzb but refers to a different virtual output file (typically a different episode within the same season-pack NZB).

type Parser

type Parser struct {
	// contains filtered or unexported fields
}

func NewParser

func NewParser(dbPath, blobsPath string) *Parser

func (*Parser) Parse

func (p *Parser) Parse() (<-chan *ParsedNzb, <-chan error)

Parse streams NZBs from the database

Jump to

Keyboard shortcuts

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