mirror of
https://github.com/zhaarey/apple-music-downloader.git
synced 2025-10-23 15:11:05 +00:00
fix day tag and atmos incorrect file information
This commit is contained in:
8
main.go
8
main.go
@@ -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++
|
||||
|
||||
Reference in New Issue
Block a user