fix: cover embed

This commit is contained in:
itouakirai
2025-03-03 20:36:33 +08:00
committed by GitHub
parent acb5a7ce1e
commit be1467340d

View File

@@ -578,8 +578,8 @@ func ripTrack(track *task.Track, token string, mediaUserToken string) {
if err != nil {
fmt.Println("Failed to write cover.")
}
tags = append(tags, fmt.Sprintf("cover=%s", track.CoverPath))
}
tags = append(tags, fmt.Sprintf("cover=%s", track.CoverPath))
}
tagsString := strings.Join(tags, ":")
cmd := exec.Command("MP4Box", "-itags", tagsString, trackPath)