fivesing

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2026 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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 GetDownloadURL

func GetDownloadURL(s *model.Song) (string, error)

func GetLyrics

func GetLyrics(s *model.Song) (string, error)

func GetPlaylistSongs

func GetPlaylistSongs(id string) ([]model.Song, error)

func Parse

func Parse(link string) (*model.Song, error)

func ParsePlaylist

func ParsePlaylist(link string) (*model.Playlist, []model.Song, error)
func Search(keyword string) ([]model.Song, error)

func SearchPlaylist

func SearchPlaylist(keyword string) ([]model.Playlist, error)

Types

type Fivesing

type Fivesing struct {
	// contains filtered or unexported fields
}

func New

func New(cookie string) *Fivesing

func (*Fivesing) GetDownloadURL

func (f *Fivesing) GetDownloadURL(s *model.Song) (string, error)

GetDownloadURL 获取下载链接

func (*Fivesing) GetLyrics

func (f *Fivesing) GetLyrics(s *model.Song) (string, error)

func (*Fivesing) GetPlaylistSongs

func (f *Fivesing) GetPlaylistSongs(id string) ([]model.Song, error)

GetPlaylistSongs 获取歌单详情 (简化版:直接复用 fetchPlaylistDetail)

func (*Fivesing) Parse

func (f *Fivesing) Parse(link string) (*model.Song, error)

Parse 解析链接并获取完整信息

func (*Fivesing) ParsePlaylist

func (f *Fivesing) ParsePlaylist(link string) (*model.Playlist, []model.Song, error)

ParsePlaylist 解析歌单链接并返回详情

func (*Fivesing) Search

func (f *Fivesing) Search(keyword string) ([]model.Song, error)

Search 搜索歌曲

func (*Fivesing) SearchPlaylist

func (f *Fivesing) SearchPlaylist(keyword string) ([]model.Playlist, error)

SearchPlaylist 搜索歌单

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL