netease

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Netease

type Netease struct {
	ReqData        neteaseUtil.RequestData
	IdRegex0       *regexp.Regexp
	IdRegex1       *regexp.Regexp
	PlaylistRegex0 *regexp.Regexp
	PlaylistRegex1 *regexp.Regexp
}

func NewNetease

func NewNetease() *Netease

func (*Netease) GetMediaInfo

func (n *Netease) GetMediaInfo(meta miaosic.MetaData) (media miaosic.MediaInfo, err error)

func (*Netease) GetMediaLyric

func (n *Netease) GetMediaLyric(meta miaosic.MetaData) ([]miaosic.Lyrics, error)

func (*Netease) GetMediaUrl

func (n *Netease) GetMediaUrl(meta miaosic.MetaData, quality miaosic.Quality) ([]miaosic.MediaUrl, error)

func (*Netease) GetName

func (n *Netease) GetName() string

func (*Netease) GetPlaylist added in v0.1.5

func (n *Netease) GetPlaylist(meta miaosic.MetaData) (*miaosic.Playlist, error)

func (*Netease) IsLogin added in v0.1.6

func (n *Netease) IsLogin() bool

func (*Netease) Login added in v0.1.5

func (n *Netease) Login(username string, password string) error

func (*Netease) Logout added in v0.1.5

func (n *Netease) Logout() error

func (*Netease) MatchMedia

func (n *Netease) MatchMedia(uri string) (miaosic.MetaData, bool)

func (*Netease) MatchPlaylist added in v0.1.5

func (n *Netease) MatchPlaylist(uri string) (miaosic.MetaData, bool)

func (*Netease) QrLogin added in v0.1.5

func (n *Netease) QrLogin() (*miaosic.QrLoginSession, error)

func (*Netease) QrLoginVerify added in v0.1.5

func (n *Netease) QrLoginVerify(qrlogin *miaosic.QrLoginSession) (*miaosic.QrLoginResult, error)

func (*Netease) RestoreSession added in v0.1.5

func (n *Netease) RestoreSession(session string) error

func (*Netease) SaveSession added in v0.1.5

func (n *Netease) SaveSession() string

func (*Netease) Search

func (n *Netease) Search(keyword string, page, size int) ([]miaosic.MediaInfo, error)

Jump to

Keyboard shortcuts

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