pls

package
v0.21.2 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Overview

Package pls provide support for pls files as used in Internet radio streams.

Index

Constants

View Source
const (
	MaxEntries     = 100
	DefaultVersion = 2
)

Variables

View Source
var (
	ErrMaxEntries    = errors.New("max entries exceeded")
	ErrInvalidFormat = errors.New("invalid format")
)

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Index  int
	File   string
	Title  string
	Length int
}

type Playlist

type Playlist struct {
	Version         int
	NumberOfEntries int
	Entries         []Entry
}

func Parse

func Parse(in io.Reader) (Playlist, error)

Jump to

Keyboard shortcuts

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