Update mp4tag.go

This commit is contained in:
Sorrow446
2022-06-13 00:25:14 +01:00
committed by GitHub
parent 85bf7ab6a2
commit 937c18206b

View File

@@ -409,8 +409,8 @@ func Write(trackPath string, _tags *Tags) error {
return errors.New(
"Failed to make temp directory.\n" + err.Error())
}
tempPath = filepath.Join(tempPath, "tmp.m4a")
defer os.RemoveAll(tempPath)
tempPath = filepath.Join(tempPath, "tmp.m4a")
atomsList := getAtomsList()
outFile, err := os.OpenFile(trackPath, os.O_RDONLY, 0755)
if err != nil {