discdb

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package discdb provides a simple interface for reading metadata from a Blu-ray or DVD that can be used to identify the disc information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HashMediaDisc

func HashMediaDisc(discPath string) (string, error)

HashMediaDisc returns a DiscHashInfo containing the hash of the media disc.

Types

type Chapter

type Chapter struct {
	Index int    `json:"Index"`
	Title string `json:"Title"`
}

type Disc

type Disc struct {
	Index       int     `json:"Index"`
	Slug        string  `json:"Slug"`
	Name        string  `json:"Name"`
	Format      string  `json:"Format"`
	ContentHash string  `json:"ContentHash"`
	Titles      []Title `json:"Titles"`
}

type Item

type Item struct {
	Title    string    `json:"Title"`
	Type     string    `json:"Type"`
	Chapters []Chapter `json:"Chapters"`
}

type Title

type Title struct {
	Index       int     `json:"Index"`
	Comment     string  `json:"Comment"`
	SourceFile  string  `json:"SourceFile"`
	SegmentMap  string  `json:"SegmentMap"`
	Duration    string  `json:"Duration"`
	Size        int64   `json:"Size"`
	DisplaySize string  `json:"DisplaySize"`
	Item        Item    `json:"Item"`
	Tracks      []Track `json:"Tracks"`
}

type Track

type Track struct {
	Index        int    `json:"Index"`
	Name         string `json:"Name"`
	Type         string `json:"Type"`
	Resolution   string `json:"Resolution,omitempty"`
	AspectRatio  string `json:"AspectRatio,omitempty"`
	AudioType    string `json:"AudioType,omitempty"`
	LanguageCode string `json:"LanguageCode,omitempty"`
	Language     string `json:"Language,omitempty"`
}

Directories

Path Synopsis
Package discdbdata provides an embedded copy of the data from [TheDiscDb].
Package discdbdata provides an embedded copy of the data from [TheDiscDb].

Jump to

Keyboard shortcuts

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