summaryrefslogtreecommitdiff
path: root/rhimport
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2016-07-13 19:45:58 (GMT)
committerChristian Pointner <equinox@helsinki.at>2016-07-13 19:45:58 (GMT)
commit384aa393acd021eb2a76816b3cc9bad35cd49ba7 (patch)
tree9f56335d5db8bf2a8331daa982a4f256281b70f1 /rhimport
parent3c67fe07b6103d1bd0ddafbfa7da0544cf7ed83e (diff)
all fetched files are now inside seperate directory and always get imported from tmp-dir
Diffstat (limited to 'rhimport')
-rw-r--r--rhimport/importer.go6
-rw-r--r--rhimport/normalizer.go2
2 files changed, 2 insertions, 6 deletions
diff --git a/rhimport/importer.go b/rhimport/importer.go
index 518b242..5f2f40d 100644
--- a/rhimport/importer.go
+++ b/rhimport/importer.go
@@ -436,11 +436,7 @@ func cleanupFiles(ctx *Context, res *Result) {
}
}
} else {
- if strings.HasPrefix(ctx.SourceFile, ctx.conf.LocalFetchDir) {
- res.SourceFile = "local://" + strings.TrimPrefix(ctx.SourceFile, ctx.conf.LocalFetchDir)
- } else if strings.HasPrefix(ctx.SourceFile, ctx.conf.TempDir) {
- res.SourceFile = "tmp://" + strings.TrimPrefix(ctx.SourceFile, ctx.conf.TempDir)
- }
+ res.SourceFile = "tmp://" + strings.TrimPrefix(ctx.SourceFile, ctx.conf.TempDir)
}
return
}
diff --git a/rhimport/normalizer.go b/rhimport/normalizer.go
index 3730929..15f71ed 100644
--- a/rhimport/normalizer.go
+++ b/rhimport/normalizer.go
@@ -39,7 +39,7 @@ func NormalizeFile(ctx *Context) (err error) {
return
}
- rhl.Printf("NormalizeFile: using gain = %.2fdB", ctx.LoudnessCorr)
+ rhl.Printf("NormalizeFile: using gain = %.2f dB", ctx.LoudnessCorr)
ctx.NormalizationLevel = 0 // don't do double normalization
var src *os.File