Documentation
¶
Index ¶
- Constants
- func ExtractMP3List(songs []Song, savePath string) ([]*resource.MP3, error)
- func Parse(url string) (req common.MusicRequest, err error)
- type Album
- type AlbumRequest
- type AlbumResponse
- type CD
- type GetAlbumInfo
- type MusicExpress
- type PlaylistRequest
- type PlaylistResponse
- type Singer
- type SingerRequest
- type SingerResponse
- type Song
- type SongRequest
- type SongResponse
Constants ¶
View Source
const ( SongAPI = "https://c.y.qq.com/v8/fcg-bin/fcg_play_single_song.fcg" ArtistAPI = "https://c.y.qq.com/v8/fcg-bin/fcg_v8_singer_track_cp.fcg" AlbumAPI = "https://c.y.qq.com/v8/fcg-bin/fcg_v8_album_detail_cp.fcg" PlaylistAPI = "https://c.y.qq.com/v8/fcg-bin/fcg_v8_playlist_cp.fcg" )
View Source
const ( SelfSongDownloadUrl = "http://dl.stream.qqmusic.qq.com/M500%s.mp3?guid=%s&vkey=%s&fromtag=1" ThirdSongDownloadAPI = "https://v1.itooi.cn/tencent/url?id=%s&quality=%d" )
View Source
const (
AlbumPicUrl = "https://y.gtimg.cn/music/photo_new/T002R300x300M000%s.jpg"
)
View Source
const (
MusicExpressAPI = "http://base.music.qq.com/fcgi-bin/fcg_musicexpress.fcg"
)
View Source
const (
UrlPattern = "/(song|songDetail|singer|album|playsquare)/(\\w+)\\.html"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AlbumRequest ¶
type AlbumRequest struct {
Params map[string]string
Response AlbumResponse
}
func NewAlbumRequest ¶
func NewAlbumRequest(mid string) *AlbumRequest
func (*AlbumRequest) Do ¶
func (s *AlbumRequest) Do() error
type AlbumResponse ¶
type AlbumResponse struct {
Code int
Data struct {
GetAlbumInfo GetAlbumInfo `json:"getAlbumInfo"`
GetSongInfo []Song `json:"getSongInfo"`
} `json:"data"`
}
type GetAlbumInfo ¶
type MusicExpress ¶
type PlaylistRequest ¶
type PlaylistRequest struct {
Params map[string]string
Response PlaylistResponse
}
func NewPlaylistRequest ¶
func NewPlaylistRequest(id string) *PlaylistRequest
func (*PlaylistRequest) Do ¶
func (s *PlaylistRequest) Do() error
type PlaylistResponse ¶
type SingerRequest ¶
type SingerRequest struct {
Params map[string]string
Response SingerResponse
}
func NewSingerRequest ¶
func NewSingerRequest(mid string) *SingerRequest
func (*SingerRequest) Do ¶
func (s *SingerRequest) Do() error
type SingerResponse ¶
type Song ¶
type SongRequest ¶
type SongRequest struct {
Params map[string]string
Response SongResponse
}
func NewSongRequest ¶
func NewSongRequest(mid string) *SongRequest
func (*SongRequest) Do ¶
func (s *SongRequest) Do() error
type SongResponse ¶
Click to show internal directories.
Click to hide internal directories.