Documentation ¶
Index ¶
- type Netease
- func (n *Netease) GetMediaInfo(meta miaosic.MetaData) (media miaosic.MediaInfo, err error)
- func (n *Netease) GetMediaLyric(meta miaosic.MetaData) ([]miaosic.Lyrics, error)
- func (n *Netease) GetMediaUrl(meta miaosic.MetaData, quality miaosic.Quality) ([]miaosic.MediaUrl, error)
- func (n *Netease) GetName() string
- func (n *Netease) GetPlaylist(meta miaosic.MetaData) (*miaosic.Playlist, error)
- func (n *Netease) IsLogin() bool
- func (n *Netease) Login(username string, password string) error
- func (n *Netease) Logout() error
- func (n *Netease) MatchMedia(uri string) (miaosic.MetaData, bool)
- func (n *Netease) MatchPlaylist(uri string) (miaosic.MetaData, bool)
- func (n *Netease) QrLogin() (*miaosic.QrLoginSession, error)
- func (n *Netease) QrLoginVerify(qrlogin *miaosic.QrLoginSession) (*miaosic.QrLoginResult, error)
- func (n *Netease) RestoreSession(session string) error
- func (n *Netease) SaveSession() string
- func (n *Netease) Search(keyword string, page, size int) ([]miaosic.MediaInfo, error)
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 (*Netease) GetMediaLyric ¶
func (*Netease) GetMediaUrl ¶
func (*Netease) GetPlaylist ¶ added in v0.1.5
func (*Netease) MatchPlaylist ¶ added in v0.1.5
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 (*Netease) SaveSession ¶ added in v0.1.5
Click to show internal directories.
Click to hide internal directories.