Versions in this module Expand all Collapse all v1 v1.2.1 Jun 20, 2021 v1.2.0 Jun 7, 2021 Changes in this version type Client + func (c *Client) Lyrics(id string) (*Lyrics, error) + type Lyrics struct + Copyrights string + ID string + Sync []SyncedLyric + Text string + Writers string type Song + func (s Song) Write(w io.Writer, quality Quality) error + type SyncedLyric struct + Duration string + Line string + Milliseconds int + Timestamp string v1.1.0 Jun 6, 2021 v1.0.0 Jun 4, 2021 Changes in this version + func URL(ctype ContentType, id string) (link string) + type Album struct + ArtistID string + ArtistName string + Available bool + DigitalReleaseDate string + ExplicitContent ExplicitContent + Fans int + ID string + LabelName string + PhysicalReleaseDate string + Picture string + ProviderID string + SonyProdID string + Status string + StyleName string + Title string + UPC string + Version string + type Artist struct + Fans int + ID string + Name string + Picture string + type ChunkDecrypter struct + func NewChunkDecrypter(songid string) (*ChunkDecrypter, error) + func (c ChunkDecrypter) DecryptChunk(dst, src []byte) + type Client struct + Arl string + func NewClient(arl string) (*Client, error) + func NewClientWithHTTPClient(arl string, client *http.Client) *Client + func (c *Client) Album(id string) (*Album, error) + func (c *Client) AlbumsByArtist(id string) ([]Album, error) + func (c *Client) Artist(id string) (*Artist, error) + func (c *Client) AvailableQualities(song Song) []Quality + func (c *Client) Download(song Song, quality Quality) (io.ReadCloser, error) + func (c *Client) IsQualityAvailable(song Song, quality Quality) bool + func (c *Client) Search(query, filter, output string, start, limit int) (*SearchResponse, error) + func (c *Client) Song(id string) (*Song, error) + func (c *Client) SongsByAlbum(id string, songLimit int) ([]Song, error) + type ContentType string + const ContentAlbum + const ContentArtist + const ContentSong + func ParseURL(link string) (ctype ContentType, id string) + type Contributors struct + Artist []string + MainArtist []string + type DecryptingReader struct + func NewDecryptingReader(r io.Reader, songid string) (*DecryptingReader, error) + func (r *DecryptingReader) Read(p []byte) (int, error) + func (r *DecryptingReader) ReadChunk() ([]byte, error) + type ErrUnexpectedStatusCode struct + Code int + func (err ErrUnexpectedStatusCode) Error() string + type ExplicitContent struct + CoverStatus int + LyricsStatus int + type Quality int + const FLAC + const MP3128 + const MP3320 + type SearchResponse struct + Albums struct{ ... } + Artists struct{ ... } + Songs struct{ ... } + type Song struct + AlbumID string + AlbumPicture string + AlbumTitle string + ArtistID string + ArtistName string + ArtistPicture string + Artists []Artist + Contributors Contributors + DigitalReleaseDate string + DiskNumber string + Duration string + ExplicitContent ExplicitContent + ExplicitLyrics string + Filesize string + FilesizeFLAC int + FilesizeMP3128 int + FilesizeMP3320 int + HierarchicalTitle string + ID string + ISRC string + LyricsID int + MD5Origin string + MediaVersion string + PhysicalReleaseDate string + ProductTrackID string + ProviderID string + Rank string + Status int + Title string + TrackNumber int + UploadID int + Version string + Video bool + func (s Song) DownloadURL(quality Quality) string