Documentation
¶
Index ¶
- Constants
- type Album
- type Artist
- type Playlist
- type Search
- type Tidal
- func (t *Tidal) CheckSession() (bool, error)
- func (t *Tidal) DownloadAlbum(al Album) error
- func (t *Tidal) DownloadPlaylist(p Playlist) error
- func (t Tidal) DownloadTrack(root string, tr Track) error
- func (t *Tidal) GetAlbum(id string) (Album, error)
- func (t *Tidal) GetAlbumTracks(id string) ([]Track, error)
- func (t *Tidal) GetArtist(artist string) (Artist, error)
- func (t *Tidal) GetArtistAlbums(artist string, l int) ([]Album, error)
- func (t *Tidal) GetArtistEP(artist string, l int) ([]Album, error)
- func (t *Tidal) GetFavoriteAlbums() ([]string, error)
- func (t *Tidal) GetPlaylist(id string) (Playlist, error)
- func (t *Tidal) GetPlaylistTracks(id string) ([]Track, error)
- func (t *Tidal) GetStreamURL(id, q string) (string, error)
- func (t *Tidal) SearchAlbums(d string, l int) ([]Album, error)
- func (t *Tidal) SearchArtists(d string, l int) ([]Artist, error)
- func (t *Tidal) SearchTracks(d string, l int) ([]Track, error)
- type TidalError
- type Track
Constants ¶
View Source
const ( AQ_LOSSLESS int = iota AQ_HI_RES )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct {
Artists []Artist `json:"artists,omitempty"`
Title string `json:"title"`
ID json.Number `json:"id"`
NumberOfTracks json.Number `json:"numberOfTracks"`
Explicit bool `json:"explicit,omitempty"`
Copyright string `json:"copyright,omitempty"`
AudioQuality string `json:"audioQuality"`
ReleaseDate string `json:"releaseDate"`
Duration float64 `json:"duration"`
PremiumStreamingOnly bool `json:"premiumStreamingOnly"`
Popularity float64 `json:"popularity,omitempty"`
Artist Artist `json:"artist"`
Cover string `json:"cover"`
// contains filtered or unexported fields
}
Album struct
type Artist ¶
type Artist struct {
ID json.Number `json:"id"`
Name string `json:"name"`
Type string `json:"type"`
}
Artist struct
type Playlist ¶
type Playlist struct {
Creator struct {
ID int
}
ID string
Description string
Created cTime
URL string
SquareImage string
LastItemAddedAt cTime
Image string
Popularity float64
LastUpdated cTime
NumberOfTracks int
Duration int
Type string
PublicPlaylist bool
Title string
Tracks []Track `json:"-"`
// contains filtered or unexported fields
}
type Search ¶
type Search struct {
Items []Album `json:"items"`
Albums struct {
Items []Album `json:"items"`
} `json:"albums"`
Artists struct {
Items []Artist `json:"items"`
} `json:"artists"`
Tracks struct {
Items []Track `json:"items"`
} `json:"tracks"`
}
Search struct
type Tidal ¶
type Tidal struct {
SessionID string `json:"sessionID"`
CountryCode string `json:"countryCode"`
UserID json.Number `json:"userId"`
// contains filtered or unexported fields
}
Tidal api struct
func (*Tidal) CheckSession ¶
func (*Tidal) DownloadAlbum ¶
func (*Tidal) DownloadPlaylist ¶
func (*Tidal) GetAlbumTracks ¶
GetAlbumTracks func
func (*Tidal) GetArtistAlbums ¶
GetArtistAlbums func
func (*Tidal) GetFavoriteAlbums ¶
func (*Tidal) GetPlaylist ¶
GetPlaylist func
func (*Tidal) GetPlaylistTracks ¶
GetPlaylistTracks func
func (*Tidal) GetStreamURL ¶
GetStreamURL func
func (*Tidal) SearchAlbums ¶
SearchAlbums func
func (*Tidal) SearchArtists ¶
SearchArtists func
type TidalError ¶
type Track ¶
type Track struct {
Artists []Artist `json:"artists"`
Artist Artist `json:"artist"`
Album Album `json:"album"`
Playlist Playlist `json:"-"`
Title string `json:"title"`
ID json.Number `json:"id"`
Explicit bool `json:"explicit"`
Copyright string `json:"copyright"`
Popularity int `json:"popularity"`
TrackNumber json.Number `json:"trackNumber"`
Duration json.Number `json:"duration"`
AudioQuality string `json:"audioQuality"`
}
Track struct
Click to show internal directories.
Click to hide internal directories.