Some checks failed
Pipeline: Test, Lint, Build / Get version info (push) Has been cancelled
Pipeline: Test, Lint, Build / Lint Go code (push) Has been cancelled
Pipeline: Test, Lint, Build / Test Go code (push) Has been cancelled
Pipeline: Test, Lint, Build / Test JS code (push) Has been cancelled
Pipeline: Test, Lint, Build / Lint i18n files (push) Has been cancelled
Pipeline: Test, Lint, Build / Check Docker configuration (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (darwin/amd64) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (darwin/arm64) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (linux/386) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (linux/amd64) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (linux/arm/v5) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (linux/arm/v6) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (linux/arm/v7) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (linux/arm64) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (windows/386) (push) Has been cancelled
Pipeline: Test, Lint, Build / Build (windows/amd64) (push) Has been cancelled
Pipeline: Test, Lint, Build / Push to GHCR (push) Has been cancelled
Pipeline: Test, Lint, Build / Push to Docker Hub (push) Has been cancelled
Pipeline: Test, Lint, Build / Cleanup digest artifacts (push) Has been cancelled
Pipeline: Test, Lint, Build / Build Windows installers (push) Has been cancelled
Pipeline: Test, Lint, Build / Package/Release (push) Has been cancelled
Pipeline: Test, Lint, Build / Upload Linux PKG (push) Has been cancelled
Close stale issues and PRs / stale (push) Has been cancelled
POEditor import / update-translations (push) Has been cancelled
67 lines
1.7 KiB
Go
67 lines
1.7 KiB
Go
package deezer
|
|
|
|
type SearchArtistResults struct {
|
|
Data []Artist `json:"data"`
|
|
Total int `json:"total"`
|
|
Next string `json:"next"`
|
|
}
|
|
|
|
type Artist struct {
|
|
ID int `json:"id"`
|
|
Name string `json:"name"`
|
|
Link string `json:"link"`
|
|
Picture string `json:"picture"`
|
|
PictureSmall string `json:"picture_small"`
|
|
PictureMedium string `json:"picture_medium"`
|
|
PictureBig string `json:"picture_big"`
|
|
PictureXl string `json:"picture_xl"`
|
|
NbAlbum int `json:"nb_album"`
|
|
NbFan int `json:"nb_fan"`
|
|
Radio bool `json:"radio"`
|
|
Tracklist string `json:"tracklist"`
|
|
Type string `json:"type"`
|
|
}
|
|
|
|
type Error struct {
|
|
Error struct {
|
|
Type string `json:"type"`
|
|
Message string `json:"message"`
|
|
Code int `json:"code"`
|
|
} `json:"error"`
|
|
}
|
|
|
|
type RelatedArtists struct {
|
|
Data []Artist `json:"data"`
|
|
Total int `json:"total"`
|
|
}
|
|
|
|
type TopTracks struct {
|
|
Data []Track `json:"data"`
|
|
Total int `json:"total"`
|
|
Next string `json:"next"`
|
|
}
|
|
|
|
type Track struct {
|
|
ID int `json:"id"`
|
|
Title string `json:"title"`
|
|
Link string `json:"link"`
|
|
Duration int `json:"duration"`
|
|
Rank int `json:"rank"`
|
|
Preview string `json:"preview"`
|
|
Artist Artist `json:"artist"`
|
|
Album Album `json:"album"`
|
|
Contributors []Artist `json:"contributors"`
|
|
}
|
|
|
|
type Album struct {
|
|
ID int `json:"id"`
|
|
Title string `json:"title"`
|
|
Cover string `json:"cover"`
|
|
CoverSmall string `json:"cover_small"`
|
|
CoverMedium string `json:"cover_medium"`
|
|
CoverBig string `json:"cover_big"`
|
|
CoverXl string `json:"cover_xl"`
|
|
Tracklist string `json:"tracklist"`
|
|
Type string `json:"type"`
|
|
}
|