mirror of
https://git.sr.ht/~phw/scotty
synced 2025-05-03 07:07:04 +02:00
JSPF: Listen import
This commit is contained in:
parent
cac88f316b
commit
409acccebe
2 changed files with 63 additions and 24 deletions
|
@ -19,6 +19,7 @@ package jspf
|
|||
|
||||
import "time"
|
||||
|
||||
// See https://xspf.org/jspf
|
||||
type Jspf struct {
|
||||
Playlist Playlist `json:"playlist"`
|
||||
}
|
||||
|
@ -63,6 +64,8 @@ type Meta map[string]string
|
|||
|
||||
// Extension for "https://musicbrainz.org/doc/jspf#track"
|
||||
// as used by ListenBrainz.
|
||||
const MusicBrainzTrackExtensionId = "https://musicbrainz.org/doc/jspf#track"
|
||||
|
||||
type MusicBrainzTrackExtension struct {
|
||||
AddedAt time.Time `json:"added_at,omitempty"`
|
||||
AddedBy string `json:"added_by,omitempty"`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue