parsers

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PlaylistParser

type PlaylistParser interface {
	// ParsePlaylist parses a playlist and return a map of path of music files.
	ParsePlaylist(playlist string) (map[string][]string, error)
}

func GetParser

func GetParser(playlist string) PlaylistParser

func NewPlsParser

func NewPlsParser() PlaylistParser

func NewRhythmboxParser

func NewRhythmboxParser() PlaylistParser

type PlsParser

type PlsParser struct{}

func (PlsParser) ParsePlaylist

func (p PlsParser) ParsePlaylist(playlistPath string) (map[string][]string, error)

type RhythmboxParser

type RhythmboxParser struct{}

func (RhythmboxParser) ParsePlaylist

func (p RhythmboxParser) ParsePlaylist(playlistPath string) (map[string][]string, error)

type RhythmboxPlaylist

type RhythmboxPlaylist struct {
	Name      string   `xml:"name,attr"`
	Locations []string `xml:"location"`
}

type RhythmboxPlaylists

type RhythmboxPlaylists struct {
	Playlists []RhythmboxPlaylist `xml:"playlist"`
}

Jump to

Keyboard shortcuts

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