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

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

No files matched your search

+3 -3
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