Feat: 获取&写入 音频文件的 Metadata #43

Merged
um-dev merged 13 commits from feat/audio-meta into master 2022-12-06 17:55:19 +00:00
Showing only changes of commit 8319df6ca3 - Show all commits

View File

@ -164,12 +164,13 @@ func tryDecFile(inputFile string, outputDir string, allDec []common.NewDecoderFu
return err return err
} }
defer file.Close() defer file.Close()
logger := logger.With(zap.String("source", inputFile))
decParams := &common.DecoderParams{ decParams := &common.DecoderParams{
Reader: file, Reader: file,
Extension: filepath.Ext(inputFile), Extension: filepath.Ext(inputFile),
FilePath: inputFile, FilePath: inputFile,
Logger: logger.With(zap.String("source", inputFile)), Logger: logger,
} }
var dec common.Decoder var dec common.Decoder