downloader

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: GPL-3.0 Imports: 14 Imported by: 2

Documentation

Index

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

func Decrypt163key(encrypted string) (decrypted string)

Decrypt163key 解码 163 key

func ParseArtist

func ParseArtist(songDetail types.SongDetailData) string

ParseArtist 解析歌手数据

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

Jump to

Keyboard shortcuts

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