✨ Tag files
This commit is contained in:
parent
7a198a0273
commit
ed7e1ddade
8 changed files with 172 additions and 4 deletions
|
|
@ -2,6 +2,8 @@ package app
|
|||
|
||||
import (
|
||||
"os"
|
||||
p "path/filepath"
|
||||
s "strings"
|
||||
|
||||
"codeberg.org/danjones000/strip-beats/media"
|
||||
"codeberg.org/danjones000/strip-beats/utils"
|
||||
|
|
@ -31,7 +33,10 @@ func validateNumber(input string, lastChar rune) bool {
|
|||
}
|
||||
|
||||
func fadeFile() error {
|
||||
tmp, err := os.CreateTemp("", "audio.*.mka")
|
||||
base := p.Base(file.Format.Path)
|
||||
ext := p.Ext(base)
|
||||
base = s.TrimSuffix(base, ext)
|
||||
tmp, err := os.CreateTemp("", base+".*.mka")
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue