Versions in this module Expand all Collapse all v0 v0.2.5 Oct 29, 2024 v0.2.4 Oct 21, 2021 Changes in this version + const MP3_128 v0.2.3 Mar 4, 2021 v0.2.2 Jan 6, 2020 v0.2.1 Jan 6, 2020 v0.2.0 Jan 6, 2020 Changes in this version + const AlbumAPIFormat type API + func (api *API) GetAlbumData(ID int) (*Album, error) + type Album struct + CoverURL string + Covers Covers + Date time.Time + ID int + Link string + Title string + Tracklist []AlbumTrack + Tracks []*Track + func NewAlbum(response *AlbumResponse, api *API) (*Album, error) + func (album *Album) GetTracks() ([]*Track, error) + type AlbumResponse struct + CoverBig string + CoverMedium string + CoverSmall string + CoverURL string + CoverXL string + Date string + ID int + Link string + Title string + Tracks struct{ ... } + type AlbumTrack struct + ID int + Link string + Title string + type Covers struct + Big string + Medium string + Small string + XL string v0.1.2 Dec 31, 2019 v0.1.1 Dec 30, 2019 v0.1.0 Dec 30, 2019 v0.0.2 Dec 30, 2019 Changes in this version + const FLAC + const MP3_256 + const MP3_320 + var NoMD5Error = errors.New("no MD5 hash -- try authenticating") + func DecryptSongFile(key []byte, inputPath, outputPath string) error + func DumpResponse(resp *http.Response, message string) + func ECB(key, data []byte) ([]byte, error) + func MD5Hash(data []byte) string + func MakeURLPath(track *Track, format Format) (string, error) + type API struct + APIToken string + DebugMode bool + func NewAPI(debugMode bool) (*API, error) + func (api *API) ApiRequest(method string, body io.Reader) (*http.Response, error) + func (api *API) CookieLogin(arl string) error + func (api *API) GetSongData(ID int) (*Track, error) + func (api *API) MobileApiRequest(method string, body io.Reader) (*http.Response, error) + type Format int + type Track struct + Gain float32 + ID int + MD5 string + MediaVersion int + Title string + TrackNumber int + func (track *Track) GetBlowfishKey() []byte + func (track *Track) GetDownloadURL(format Format) (*url.URL, error) + func (track *Track) GetMD5() error