store

package
v0.22.0 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExportTo

func ExportTo(p spotify.FullPlaylist, filename string) error

Types

type Artist

type Artist struct {
	Name string `json:"name"`

	ID  spotify.ID  `json:"id"`
	URI spotify.URI `json:"uri"`
}

func (Artist) Simple

func (a Artist) Simple() spotify.SimpleArtist

type Playlist

type Playlist struct {
	Name         string      `json:"name"`
	URI          spotify.URI `json:"uri"`
	ID           spotify.ID  `json:"id"`
	Owner        string      `json:"owner"`
	DateExported time.Time   `json:"date_exported"`
	Tracks       []Track     `json:"tracks"`
}

func ImportFrom

func ImportFrom(filename string) (*Playlist, error)

func PlaylistFromFull

func PlaylistFromFull(p spotify.FullPlaylist) Playlist

func (*Playlist) ExportTo

func (p *Playlist) ExportTo(filename string) error

func (Playlist) PlaylistTracks

func (p Playlist) PlaylistTracks() []spotify.PlaylistTrack

type Track

type Track struct {
	Name    string      `json:"name"`
	ID      spotify.ID  `json:"id"`
	URI     spotify.URI `json:"uri"`
	Artists []Artist    `json:"artists"`
}

func TrackFromFull

func TrackFromFull(t spotify.FullTrack) Track

func (Track) Full

func (t Track) Full() spotify.FullTrack

Jump to

Keyboard shortcuts

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