Documentation
¶
Index ¶
- Constants
- func GetDownloadURL(s *model.Song) (string, error)
- func GetLyrics(s *model.Song) (string, error)
- func GetPlaylistSongs(id string) ([]model.Song, error)
- func Parse(link string) (*model.Song, error)
- func ParsePlaylist(link string) (*model.Playlist, []model.Song, error)
- func Search(keyword string) ([]model.Song, error)
- func SearchPlaylist(keyword string) ([]model.Playlist, error)
- type Fivesing
- func (f *Fivesing) GetDownloadURL(s *model.Song) (string, error)
- func (f *Fivesing) GetLyrics(s *model.Song) (string, error)
- func (f *Fivesing) GetPlaylistSongs(id string) ([]model.Song, error)
- func (f *Fivesing) Parse(link string) (*model.Song, error)
- func (f *Fivesing) ParsePlaylist(link string) (*model.Playlist, []model.Song, error)
- func (f *Fivesing) Search(keyword string) ([]model.Song, error)
- func (f *Fivesing) 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 ¶
Types ¶
type Fivesing ¶
type Fivesing struct {
// contains filtered or unexported fields
}
func (*Fivesing) GetDownloadURL ¶
GetDownloadURL 获取下载链接
func (*Fivesing) GetPlaylistSongs ¶
GetPlaylistSongs 获取歌单详情 (简化版:直接复用 fetchPlaylistDetail)
func (*Fivesing) ParsePlaylist ¶
ParsePlaylist 解析歌单链接并返回详情
Click to show internal directories.
Click to hide internal directories.