Add program parameter: --song
This commit is contained in:
parent
395709fc01
commit
883476aaa9
@ -3,9 +3,9 @@ package structs
|
|||||||
type ConfigSet struct {
|
type ConfigSet struct {
|
||||||
MediaUserToken string `yaml:"media-user-token"`
|
MediaUserToken string `yaml:"media-user-token"`
|
||||||
AuthorizationToken string `yaml:"authorization-token"`
|
AuthorizationToken string `yaml:"authorization-token"`
|
||||||
Language string `yaml:"language"`
|
Language string `yaml:"language"`
|
||||||
SaveLrcFile bool `yaml:"save-lrc-file"`
|
SaveLrcFile bool `yaml:"save-lrc-file"`
|
||||||
LrcType string `yaml:"lrc-type"`
|
LrcType string `yaml:"lrc-type"`
|
||||||
LrcFormat string `yaml:"lrc-format"`
|
LrcFormat string `yaml:"lrc-format"`
|
||||||
SaveAnimatedArtwork bool `yaml:"save-animated-artwork"`
|
SaveAnimatedArtwork bool `yaml:"save-animated-artwork"`
|
||||||
EmbyAnimatedArtwork bool `yaml:"emby-animated-artwork"`
|
EmbyAnimatedArtwork bool `yaml:"emby-animated-artwork"`
|
||||||
@ -23,7 +23,7 @@ type ConfigSet struct {
|
|||||||
ExplicitChoice string `yaml:"explicit-choice"`
|
ExplicitChoice string `yaml:"explicit-choice"`
|
||||||
CleanChoice string `yaml:"clean-choice"`
|
CleanChoice string `yaml:"clean-choice"`
|
||||||
AppleMasterChoice string `yaml:"apple-master-choice"`
|
AppleMasterChoice string `yaml:"apple-master-choice"`
|
||||||
MaxMemoryLimit int `yaml:"max-memory-limit"`
|
MaxMemoryLimit int `yaml:"max-memory-limit"`
|
||||||
DecryptM3u8Port string `yaml:"decrypt-m3u8-port"`
|
DecryptM3u8Port string `yaml:"decrypt-m3u8-port"`
|
||||||
GetM3u8Port string `yaml:"get-m3u8-port"`
|
GetM3u8Port string `yaml:"get-m3u8-port"`
|
||||||
GetM3u8Mode string `yaml:"get-m3u8-mode"`
|
GetM3u8Mode string `yaml:"get-m3u8-mode"`
|
||||||
@ -38,10 +38,10 @@ type ConfigSet struct {
|
|||||||
|
|
||||||
type Counter struct {
|
type Counter struct {
|
||||||
Unavailable int
|
Unavailable int
|
||||||
NotSong int
|
NotSong int
|
||||||
Error int
|
Error int
|
||||||
Success int
|
Success int
|
||||||
Total int
|
Total int
|
||||||
}
|
}
|
||||||
|
|
||||||
type ApiResult struct {
|
type ApiResult struct {
|
||||||
@ -181,6 +181,62 @@ type SongResult struct {
|
|||||||
} `json:"offers"`
|
} `json:"offers"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type TrackData struct {
|
||||||
|
ID string `json:"id"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
Href string `json:"href"`
|
||||||
|
Attributes struct {
|
||||||
|
Previews []struct {
|
||||||
|
URL string `json:"url"`
|
||||||
|
} `json:"previews"`
|
||||||
|
Artwork struct {
|
||||||
|
Width int `json:"width"`
|
||||||
|
Height int `json:"height"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
BgColor string `json:"bgColor"`
|
||||||
|
TextColor1 string `json:"textColor1"`
|
||||||
|
TextColor2 string `json:"textColor2"`
|
||||||
|
TextColor3 string `json:"textColor3"`
|
||||||
|
TextColor4 string `json:"textColor4"`
|
||||||
|
} `json:"artwork"`
|
||||||
|
ArtistName string `json:"artistName"`
|
||||||
|
URL string `json:"url"`
|
||||||
|
DiscNumber int `json:"discNumber"`
|
||||||
|
GenreNames []string `json:"genreNames"`
|
||||||
|
HasTimeSyncedLyrics bool `json:"hasTimeSyncedLyrics"`
|
||||||
|
IsMasteredForItunes bool `json:"isMasteredForItunes"`
|
||||||
|
IsAppleDigitalMaster bool `json:"isAppleDigitalMaster"`
|
||||||
|
ContentRating string `json:"contentRating"`
|
||||||
|
DurationInMillis int `json:"durationInMillis"`
|
||||||
|
ReleaseDate string `json:"releaseDate"`
|
||||||
|
Name string `json:"name"`
|
||||||
|
Isrc string `json:"isrc"`
|
||||||
|
AudioTraits []string `json:"audioTraits"`
|
||||||
|
HasLyrics bool `json:"hasLyrics"`
|
||||||
|
AlbumName string `json:"albumName"`
|
||||||
|
PlayParams struct {
|
||||||
|
ID string `json:"id"`
|
||||||
|
Kind string `json:"kind"`
|
||||||
|
} `json:"playParams"`
|
||||||
|
TrackNumber int `json:"trackNumber"`
|
||||||
|
AudioLocale string `json:"audioLocale"`
|
||||||
|
ComposerName string `json:"composerName"`
|
||||||
|
} `json:"attributes"`
|
||||||
|
Relationships struct {
|
||||||
|
Artists struct {
|
||||||
|
Href string `json:"href"`
|
||||||
|
Data []struct {
|
||||||
|
ID string `json:"id"`
|
||||||
|
Type string `json:"type"`
|
||||||
|
Href string `json:"href"`
|
||||||
|
Attributes struct {
|
||||||
|
Name string `json:"name"`
|
||||||
|
} `json:"attributes"`
|
||||||
|
} `json:"data"`
|
||||||
|
} `json:"artists"`
|
||||||
|
} `json:"relationships"`
|
||||||
|
}
|
||||||
|
|
||||||
type AutoGenerated struct {
|
type AutoGenerated struct {
|
||||||
Data []struct {
|
Data []struct {
|
||||||
ID string `json:"id"`
|
ID string `json:"id"`
|
||||||
@ -246,63 +302,9 @@ type AutoGenerated struct {
|
|||||||
} `json:"data"`
|
} `json:"data"`
|
||||||
} `json:"artists"`
|
} `json:"artists"`
|
||||||
Tracks struct {
|
Tracks struct {
|
||||||
Href string `json:"href"`
|
Href string `json:"href"`
|
||||||
Next string `json:"next"`
|
Next string `json:"next"`
|
||||||
Data []struct {
|
Data []TrackData `json:"data"`
|
||||||
ID string `json:"id"`
|
|
||||||
Type string `json:"type"`
|
|
||||||
Href string `json:"href"`
|
|
||||||
Attributes struct {
|
|
||||||
Previews []struct {
|
|
||||||
URL string `json:"url"`
|
|
||||||
} `json:"previews"`
|
|
||||||
Artwork struct {
|
|
||||||
Width int `json:"width"`
|
|
||||||
Height int `json:"height"`
|
|
||||||
URL string `json:"url"`
|
|
||||||
BgColor string `json:"bgColor"`
|
|
||||||
TextColor1 string `json:"textColor1"`
|
|
||||||
TextColor2 string `json:"textColor2"`
|
|
||||||
TextColor3 string `json:"textColor3"`
|
|
||||||
TextColor4 string `json:"textColor4"`
|
|
||||||
} `json:"artwork"`
|
|
||||||
ArtistName string `json:"artistName"`
|
|
||||||
URL string `json:"url"`
|
|
||||||
DiscNumber int `json:"discNumber"`
|
|
||||||
GenreNames []string `json:"genreNames"`
|
|
||||||
HasTimeSyncedLyrics bool `json:"hasTimeSyncedLyrics"`
|
|
||||||
IsMasteredForItunes bool `json:"isMasteredForItunes"`
|
|
||||||
IsAppleDigitalMaster bool `json:"isAppleDigitalMaster"`
|
|
||||||
ContentRating string `json:"contentRating"`
|
|
||||||
DurationInMillis int `json:"durationInMillis"`
|
|
||||||
ReleaseDate string `json:"releaseDate"`
|
|
||||||
Name string `json:"name"`
|
|
||||||
Isrc string `json:"isrc"`
|
|
||||||
AudioTraits []string `json:"audioTraits"`
|
|
||||||
HasLyrics bool `json:"hasLyrics"`
|
|
||||||
AlbumName string `json:"albumName"`
|
|
||||||
PlayParams struct {
|
|
||||||
ID string `json:"id"`
|
|
||||||
Kind string `json:"kind"`
|
|
||||||
} `json:"playParams"`
|
|
||||||
TrackNumber int `json:"trackNumber"`
|
|
||||||
AudioLocale string `json:"audioLocale"`
|
|
||||||
ComposerName string `json:"composerName"`
|
|
||||||
} `json:"attributes"`
|
|
||||||
Relationships struct {
|
|
||||||
Artists struct {
|
|
||||||
Href string `json:"href"`
|
|
||||||
Data []struct {
|
|
||||||
ID string `json:"id"`
|
|
||||||
Type string `json:"type"`
|
|
||||||
Href string `json:"href"`
|
|
||||||
Attributes struct {
|
|
||||||
Name string `json:"name"`
|
|
||||||
} `json:"attributes"`
|
|
||||||
} `json:"data"`
|
|
||||||
} `json:"artists"`
|
|
||||||
} `json:"relationships"`
|
|
||||||
} `json:"data"`
|
|
||||||
} `json:"tracks"`
|
} `json:"tracks"`
|
||||||
} `json:"relationships"`
|
} `json:"relationships"`
|
||||||
} `json:"data"`
|
} `json:"data"`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user