mirror of
https://github.com/Superredstone/spotiflac-cli.git
synced 2026-03-07 20:18:07 +01:00
feat: implement metadata fetch command
This commit is contained in:
14
lib/types.go
14
lib/types.go
@@ -128,8 +128,10 @@ type PlaylistMetadata struct {
|
||||
Data struct {
|
||||
Playlist struct {
|
||||
Name string `json:"name"`
|
||||
Uri string `json:"uri"`
|
||||
Content struct {
|
||||
Items []struct {
|
||||
TotalCount int `json:"totalCount"`
|
||||
Items []struct {
|
||||
Item struct {
|
||||
Data struct {
|
||||
IdentityTrait struct {
|
||||
@@ -140,6 +142,16 @@ type PlaylistMetadata struct {
|
||||
} `json:"itemV3"`
|
||||
} `json:"items"`
|
||||
} `json:"content"`
|
||||
Members struct {
|
||||
Items []struct {
|
||||
IsOwner bool `json:"isOwner"`
|
||||
User struct {
|
||||
Data struct {
|
||||
Name string `json:"name"`
|
||||
} `json:"data"`
|
||||
} `json:"user"`
|
||||
} `json:"items"`
|
||||
} `json:"members"`
|
||||
} `json:"playlistV2"`
|
||||
} `json:"data"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user