Documentation ¶
Index ¶
- func AddFlacId3v2(musicPath, picPath, musicMarker string, songDetail types.SongDetailData) error
- func AddMp3Id3v2(musicPath, picPath, musicMarker string, songDetail types.SongDetailData) error
- func CreateMarker(songDetail types.SongDetailData, songUrl types.SongURLData) (markerText string, err error)
- func Decrypt163key(encrypted string) (decrypted string)
- func ParseArtist(songDetail types.SongDetailData) string
- type MarkerData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFlacId3v2 ¶
func AddFlacId3v2(musicPath, picPath, musicMarker string, songDetail types.SongDetailData) error
AddFlacId3v2 添加 flac 的 id3v2 信息
func AddMp3Id3v2 ¶
func AddMp3Id3v2(musicPath, picPath, musicMarker string, songDetail types.SongDetailData) error
AddMp3Id3v2 添加 mp3 的 id3v2 信息
func CreateMarker ¶
func CreateMarker(songDetail types.SongDetailData, songUrl types.SongURLData) (markerText string, err error)
CreateMarker 格式化 marker 信息
func Decrypt163key ¶
Decrypt163key 解码 163 key
Types ¶
type MarkerData ¶
type MarkerData struct { MusicId int `json:"musicId"` MusicName string `json:"musicName"` Artist [][]interface{} `json:"artist"` AlbumId int `json:"albumId"` Album string `json:"album"` AlbumPicDocId string `json:"albumPicDocId"` AlbumPic string `json:"albumPic"` Bitrate int `json:"bitrate"` Mp3DocId string `json:"mp3DocId"` Duration int `json:"duration"` MvId int `json:"mvId"` Alias []interface{} `json:"alias"` Format string `json:"format"` }
MarkerData 163 key 格式
func ReadFlacKey ¶ added in v1.1.0
func ReadFlacKey(filePath string) (marker MarkerData, err error)
ReadFlacKey 解析 flac 文件的 163Key
func ReadMp3Key ¶ added in v1.1.0
func ReadMp3Key(filePath string) (marker MarkerData, err error)
ReadMp3Key 解析 mp3 文件的 163Key
Click to show internal directories.
Click to hide internal directories.