feat(meta): write album art & metadata into destination file

This commit is contained in:
Unlock Music Dev
2022-12-06 23:55:43 +08:00
parent 02e065aac4
commit fd6f830916
5 changed files with 107 additions and 106 deletions

View File

@ -30,14 +30,14 @@ type Decoder struct {
songID int
rawMetaExtra2 int
albumID int
albumMediaID string
albumID int
albumMediaID string
// cache
meta common.AudioMeta
cover []byte
embeddedCover bool // embeddedCover is true if the cover is embedded in the file
probeBuf *bytes.Buffer // probeBuf is the buffer for sniffing metadata
probeBuf *bytes.Buffer // probeBuf is the buffer for sniffing metadata, TODO: consider pipe?
// provider
logger *zap.Logger