Documentation
¶
Index ¶
- Constants
- func GetAlbumSongs(id string) ([]model.Song, error)
- func GetDownloadURL(s *model.Song) (string, error)
- func GetLyrics(s *model.Song) (string, error)
- func GetPlaylistSongs(id string) ([]model.Song, error)
- func GetRecommendedPlaylists() ([]model.Playlist, error)
- func Parse(link string) (*model.Song, error)
- func ParseAlbum(link string) (*model.Playlist, []model.Song, error)
- func ParsePlaylist(link string) (*model.Playlist, []model.Song, error)
- func Search(keyword string) ([]model.Song, error)
- func SearchAlbum(keyword string) ([]model.Playlist, error)
- func SearchPlaylist(keyword string) ([]model.Playlist, error)
- type Kuwo
- func (k *Kuwo) GetAlbumSongs(id string) ([]model.Song, error)
- func (k *Kuwo) GetDownloadURL(s *model.Song) (string, error)
- func (k *Kuwo) GetLyrics(s *model.Song) (string, error)
- func (k *Kuwo) GetPlaylistSongs(id string) ([]model.Song, error)
- func (k *Kuwo) GetRecommendedPlaylists() ([]model.Playlist, error)
- func (k *Kuwo) Parse(link string) (*model.Song, error)
- func (k *Kuwo) ParseAlbum(link string) (*model.Playlist, []model.Song, error)
- func (k *Kuwo) ParsePlaylist(link string) (*model.Playlist, []model.Song, error)
- func (k *Kuwo) Search(keyword string) ([]model.Song, error)
- func (k *Kuwo) SearchAlbum(keyword string) ([]model.Playlist, error)
- func (k *Kuwo) SearchPlaylist(keyword string) ([]model.Playlist, error)
Constants ¶
View Source
const (
UserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
)
Variables ¶
This section is empty.
Functions ¶
func GetRecommendedPlaylists ¶
GetRecommendedPlaylists 获取推荐歌单 (新增)
Types ¶
type Kuwo ¶
type Kuwo struct {
// contains filtered or unexported fields
}
func (*Kuwo) GetAlbumSongs ¶
GetPlaylistSongs 获取歌单详情(解析歌曲列表)
func (*Kuwo) GetDownloadURL ¶
GetDownloadURL 获取下载链接
func (*Kuwo) GetRecommendedPlaylists ¶
GetRecommendedPlaylists 获取推荐歌单 (酷我热门歌单)
func (*Kuwo) ParseAlbum ¶
func (*Kuwo) ParsePlaylist ¶
ParsePlaylist 解析歌单链接
func (*Kuwo) SearchAlbum ¶
SearchAlbum 搜索专辑
Click to show internal directories.
Click to hide internal directories.