fix day tag and atmos incorrect file information

This commit is contained in:
zhaarey
2025-02-10 17:12:56 +08:00
parent f6e46542b5
commit cca9af6cc4
3 changed files with 9 additions and 5 deletions

View File

@@ -20,8 +20,8 @@ import (
"strconv"
"strings"
"github.com/Sorrow446/go-mp4tag"
"github.com/spf13/pflag"
"github.com/zhaarey/go-mp4tag"
"gopkg.in/yaml.v2"
@@ -621,7 +621,11 @@ func downloadTrack(trackNum int, trackTotal int, meta *structs.AutoGenerated, tr
}
}
tagsString := strings.Join(tags, ":")
cmd := exec.Command("MP4Box", "-itags", tagsString, trackPath)
args := []string{"-itags", tagsString, trackPath}
if dl_atmos {
args = append(args, "-hint")
}
cmd := exec.Command("MP4Box", args...)
if err := cmd.Run(); err != nil {
fmt.Printf("Embed failed: %v\n", err)
counter.Error++