bdinfo

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2026 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithProgressReporter

func WithProgressReporter(ctx context.Context, reporter ProgressReporter) context.Context

WithProgressReporter attaches a progress reporter to context.

Types

type ProgressReporter

type ProgressReporter func(line string)

ProgressReporter receives raw BDInfo progress lines.

type ScanResult

type ScanResult struct {
	ReportPath string
	ReportText string
}

ScanResult contains the rendered report payload and its persisted location.

type Service

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

Service handles BDInfo execution and parsing for BDMV discs

func New

func New(logger api.Logger) *Service

New creates a new BDInfo service

func (*Service) ExecuteForPlaylist

func (s *Service) ExecuteForPlaylist(ctx context.Context, bdmvPath string, playlistFile string, outputPath string, summaryOnly bool) (string, error)

ExecuteForPlaylist runs the embedded Go BDInfo scanner for a specific playlist and writes to the caller-provided path.

func (*Service) ExecuteFullScan

func (s *Service) ExecuteFullScan(ctx context.Context, bdmvPath string, outputDir string) (ScanResult, error)

ExecuteFullScan runs the embedded Go BDInfo scanner for the full disc and returns the raw report.

func (*Service) ParseOutput

func (s *Service) ParseOutput(filePath string) (map[string]interface{}, error)

ParseOutput parses BDInfo output and returns structured data

Jump to

Keyboard shortcuts

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