playlist

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Playlist

type Playlist struct {
	XMLName   xml.Name `xml:"playlist"`
	Xmlns     string   `xml:"xmlns,attr"`
	Vlc       string   `xml:"vlc,attr"`
	Version   string   `xml:"version,attr"`
	Title     string   `xml:"title"`
	TrackList struct {
		Track []Track `xml:"track"`
	} `xml:"trackList"`
	Extension struct {
		Application string `xml:"application,attr"`
		Item        []struct {
			Tid string `xml:"tid,attr"`
		} `xml:"item"`
	} `xml:"extension"`
	// contains filtered or unexported fields
}

func (*Playlist) Add

func (pl *Playlist) Add(name string) error

func (*Playlist) Exists

func (pl *Playlist) Exists(name string) bool

type Track

type Track struct {
	Location  string `xml:"location"`
	Duration  string `xml:"duration"`
	Extension struct {
		Application string `xml:"application,attr"`
		ID          string `xml:"id"`
	} `xml:"extension"`
}

func (Track) FileName

func (t Track) FileName() string

Jump to

Keyboard shortcuts

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