tags

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: May 11, 2024 License: BSD-2-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteTags

func WriteTags(w io.Writer, tagWriter func(*ixml.XmlWriter) error) error

Writes the matroska tags as an xml file

Types

type Actor

type Actor struct {
	Name      string
	Character string
}

func (*Actor) CheckTag added in v0.2.1

func (r *Actor) CheckTag() error

func (*Actor) WriteTag

func (r *Actor) WriteTag(xw *ixml.XmlWriter, name string) error

type Country added in v0.2.0

type Country struct {
	Name string

	LawRating UniLingual `mkv:"LAW_RATING"`
	// contains filtered or unexported fields
}

func (*Country) CheckTag added in v0.2.1

func (r *Country) CheckTag() error

func (*Country) IsEmpty added in v0.2.0

func (r *Country) IsEmpty() bool

func (*Country) SetFieldCallback added in v0.2.0

func (r *Country) SetFieldCallback(name string, callback interface{})

func (*Country) WriteTag added in v0.2.0

func (r *Country) WriteTag(xw *ixml.XmlWriter, name string) error

type Movie

type Movie struct {
	Actors       []Actor        `mkv:"ACTOR"`
	Countries    []*Country     `mkv:"COUNTRY"`
	DateReleased UniLingual     `mkv:"DATE_RELEASED"`
	DateTagged   UniLingual     `mkv:"DATE_TAGGED"`
	Directors    []UniLingual   `mkv:"DIRECTOR"`
	Genres       []MultiLingual `mkv:"GENRE"`
	Imdb         UniLingual     `mkv:"IMDB"`
	Keywords     []MultiLingual `mkv:"KEYWORDS"`
	Producers    []UniLingual   `mkv:"PRODUCER"`
	Synopses     []MultiLingual `mkv:"SYNOPSIS"`
	Titles       []MultiLingual `mkv:"TITLE"`
	Writers      []UniLingual   `mkv:"WRITTEN_BY"`
}

func (*Movie) CheckTag added in v0.2.1

func (r *Movie) CheckTag() error

func (*Movie) SetFieldCallback

func (r *Movie) SetFieldCallback(name string, callback interface{})

func (*Movie) WriteTag

func (r *Movie) WriteTag(xw *ixml.XmlWriter) error

type MultiLingual

type MultiLingual struct {
	Text string
	Lang string
}

func (*MultiLingual) CheckTag added in v0.2.1

func (r *MultiLingual) CheckTag() error

func (*MultiLingual) WriteTag

func (r *MultiLingual) WriteTag(xw *ixml.XmlWriter, name string) error

type TagWriter added in v0.2.0

type TagWriter interface {
	WriteTag(*ixml.XmlWriter, string) error //Writes the tag's content to an xml file
	CheckTag() error                        //Returns an error if the tag is missing mandatory data
}

type UniLingual

type UniLingual string

func (UniLingual) CheckTag added in v0.2.1

func (r UniLingual) CheckTag() error

func (UniLingual) WriteTag

func (r UniLingual) WriteTag(xw *ixml.XmlWriter, name string) error

Jump to

Keyboard shortcuts

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