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 Core ¶
func (*Core) FetchMetaAndResourceInfo ¶
func (*Core) GetSourceName ¶ added in v0.2.0
func (*Core) IsMusicPlatform ¶ added in v0.2.0
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"` }
Click to show internal directories.
Click to hide internal directories.