Documentation ¶
Index ¶
Constants ¶
View Source
const ChunkSize = 2048
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Album ¶
type Album struct { Data struct { Title string `json:"ALB_TITLE"` Artist string `json:"ART_NAME"` OriginalReleaseDate string `json:"ORIGINAL_RELEASE_DATE"` PhysicalReleaseDate string `json:"PHYSICAL_RELEASE_DATE"` Label string `json:"LABEL_NAME"` ProducerLine string `json:"PRODUCER_LINE"` } `json:"DATA"` Songs struct { Data []*Song `json:"data"` } `json:"SONGS"` }
func (*Album) GetOutputPath ¶
func (*Album) UnmarshalData ¶
type Media ¶
type Media struct { Errors []MediaError `json:"errors"` Data []struct { Media []struct { Type string `json:"media_type"` Cipher Cipher `json:"cipher"` Format string `json:"format"` Sources []Source `json:"sources"` } Errors []MediaError `json:"errors"` } `json:"data"` }
type MediaError ¶
type Playlist ¶
type Playlist struct { Data struct { Title string `json:"TITLE"` Status int `json:"STATUS"` CollabKey string `json:"COLLAB_KEY"` } `json:"DATA"` Songs struct { Data []*Song `json:"data"` } `json:"SONGS"` }
func (*Playlist) GetOutputPath ¶
func (*Playlist) UnmarshalData ¶
type Song ¶
type Song struct { ID string `json:"SNG_ID"` Artist string `json:"ART_NAME"` Title string `json:"SNG_TITLE"` Version string `json:"VERSION"` Cover string `json:"ALB_PICTURE"` Contributors struct { MainArtists []string `json:"main_artist"` Composers []string `json:"composer"` Authors []string `json:"author"` } `json:"SNG_CONTRIBUTORS"` Duration string `json:"DURATION"` Gain string `json:"GAIN"` ISRC string `json:"ISRC"` TrackNumber string `json:"TRACK_NUMBER"` TrackToken string `json:"TRACK_TOKEN"` }
func (*Song) GetCoverImage ¶
Click to show internal directories.
Click to hide internal directories.