netease

package
v0.2.13 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Base62                     = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"
	PresetKey                  = "0CoJUm6Qyw8W8jud"
	IV                         = "0102030405060708"
	DefaultRSAPublicKeyModulus = "" // nolint
	/* 256-byte string literal not displayed */
	DefaultRSAPublicKeyExponent = 0x10001
)
View Source
const APISearch = "https://interface.music.163.com/weapi/search/get"
View Source
const ApiMlogVideoConvertId = "https://music.163.com/weapi/mlog/video/convert/id"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConvertResponse

type ConvertResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    string `json:"data"`
}

type Core

type Core struct {
	Opts *args.Options
}

func (*Core) Domains added in v0.2.6

func (c *Core) Domains() []string

func (*Core) FetchMetaAndResourceInfo

func (c *Core) FetchMetaAndResourceInfo() (mediaMeta *meta.MediaMeta, err error)

func (*Core) GetSourceName added in v0.2.0

func (c *Core) GetSourceName() string

func (*Core) IsMusicPlatform added in v0.2.0

func (c *Core) IsMusicPlatform() bool

func (*Core) SearchSong added in v0.2.0

func (c *Core) SearchSong() ([]*meta.SearchSongItem, error)

type ProgramResource

type ProgramResource struct {
	MainSong struct {
		Name    string `json:"name"`
		Id      int    `json:"id"`
		Artists []struct {
			Name string `json:"name"`
			Id   int    `json:"id"`
		} `json:"artists"`
		Duration int `json:"duration"`
	} `json:"mainSong"`
	Dj struct {
		UserId   int    `json:"userId"`
		Nickname string `json:"nickname"`
		Brand    string `json:"brand"`
	} `json:"dj"`
	Description string `json:"description"`
}

type SearchSongResponse added in v0.2.0

type SearchSongResponse struct {
	Result struct {
		Songs []struct {
			Id      int    `json:"id"`
			Name    string `json:"name"`
			Artists []struct {
				Id   int    `json:"id"`
				Name string `json:"name"`
			} `json:"artists"`
			Album struct {
				Id     int    `json:"id"`
				Name   string `json:"name"`
				Artist struct {
					Id        int           `json:"id"`
					Name      string        `json:"name"`
					PicUrl    interface{}   `json:"picUrl"`
					Alias     []interface{} `json:"alias"`
					AlbumSize int           `json:"albumSize"`
					PicId     int           `json:"picId"`
					FansGroup interface{}   `json:"fansGroup"`
					Img1V1Url string        `json:"img1v1Url"`
					Img1V1    int           `json:"img1v1"`
					Trans     interface{}   `json:"trans"`
				} `json:"artist"`
				PublishTime int64    `json:"publishTime"`
				Size        int      `json:"size"`
				CopyrightId int      `json:"copyrightId"`
				Status      int      `json:"status"`
				PicId       int64    `json:"picId"`
				Mark        int      `json:"mark"`
				Alia        []string `json:"alia,omitempty"`
				TransNames  []string `json:"transNames,omitempty"`
			} `json:"album"`
			Duration    int         `json:"duration"`
			CopyrightId int         `json:"copyrightId"`
			Status      int         `json:"status"`
			Alias       []string    `json:"alias"`
			Rtype       int         `json:"rtype"`
			Ftype       int         `json:"ftype"`
			Mvid        int         `json:"mvid"`
			Fee         int         `json:"fee"`
			RUrl        interface{} `json:"rUrl"`
			Mark        int64       `json:"mark"`
			TransNames  []string    `json:"transNames,omitempty"`
		} `json:"songs"`
		HasMore   bool `json:"hasMore"`
		SongCount int  `json:"songCount"`
	} `json:"result"`
	Code int `json:"code"`
}

Jump to

Keyboard shortcuts

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