mirror of
https://git.um-react.app/um/cli.git
synced 2025-11-28 11:43:02 +00:00
Compare commits
4 Commits
v0.2.0-bet
...
v0.2.0-bet
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2754c14fa6 | ||
|
|
8858ff37ad | ||
|
|
d0d9836990 | ||
|
|
1a508fc2b6 |
@@ -9,13 +9,11 @@ Original: Web Edition https://git.unlock-music.dev/um/web
|
||||
## Features
|
||||
|
||||
- [x] All Algorithm Supported By `unlock-music/web`
|
||||
- [ ] Complete Cover Image
|
||||
- [ ] Parse Meta Data
|
||||
- [ ] Complete Meta Data
|
||||
- [x] Complete Metadata & Cover Image
|
||||
|
||||
## Hou to Build
|
||||
|
||||
- Requirements: **Golang 1.17**
|
||||
- Requirements: **Golang 1.19**
|
||||
|
||||
1. run `go install unlock-music.dev/cli/cmd/um@master`
|
||||
|
||||
|
||||
@@ -158,9 +158,14 @@ func (p *processor) processDir(inputDir string) error {
|
||||
}
|
||||
|
||||
filePath := filepath.Join(inputDir, item.Name())
|
||||
err := p.processFile(filePath)
|
||||
if err != nil {
|
||||
logger.Error("conversion failed", zap.String("source", filePath), zap.Error(err))
|
||||
allDec := common.GetDecoder(filePath, p.skipNoopDecoder)
|
||||
if len(allDec) == 0 {
|
||||
logger.Info("skipping while no suitable decoder", zap.String("source", item.Name()))
|
||||
continue
|
||||
}
|
||||
|
||||
if err := p.process(filePath, allDec); err != nil {
|
||||
logger.Error("conversion failed", zap.String("source", item.Name()), zap.Error(err))
|
||||
}
|
||||
}
|
||||
return nil
|
||||
|
||||
Reference in New Issue
Block a user