mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
feat: fix metadata embedding
This commit is contained in:
16
lib/types.go
16
lib/types.go
@@ -16,8 +16,12 @@ type ExtractedColors struct {
|
||||
}
|
||||
|
||||
type CoverArt struct {
|
||||
ExtractedColors ExtractedColors `json:"extractedColors"`
|
||||
Sources []map[string]interface{} `json:"sources"`
|
||||
ExtractedColors ExtractedColors `json:"extractedColors"`
|
||||
Sources []struct {
|
||||
Height int `json:"height"`
|
||||
Width int `json:"width"`
|
||||
Url string `json:"url"`
|
||||
} `json:"sources"`
|
||||
}
|
||||
|
||||
type Date struct {
|
||||
@@ -119,3 +123,11 @@ type Data struct {
|
||||
type TrackMetadata struct {
|
||||
Data Data `json:"data"`
|
||||
}
|
||||
|
||||
type PlaylistMetadata struct {
|
||||
Data struct {
|
||||
Playlist struct {
|
||||
Name string `json:"name"`
|
||||
} `json:"playlistV2"`
|
||||
} `json:"data"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user