默认嵌入mv封面

This commit is contained in:
itouakirai 2025-02-18 13:34:42 +08:00
parent 1ccc4932b7
commit 6ddccf4b21
3 changed files with 4 additions and 5 deletions

View File

@ -44,4 +44,3 @@ use-songinfo-for-playlist: false
dl-albumcover-for-playlist: false dl-albumcover-for-playlist: false
mv-audio-type: atmos #atmos ac3 aac mv-audio-type: atmos #atmos ac3 aac
mv-max: 2160 mv-max: 2160
save-thumbnail-image: false #true or false of thumbnail image

View File

@ -1436,7 +1436,8 @@ func mvDownloader(adamID string, saveDir string, token string, storefront string
// Extract and save thumbnail if enabled // Extract and save thumbnail if enabled
var covPath string var covPath string
if Config.SaveThumbnailImage { //强制嵌入封面
if true {
// Get the highest quality thumbnail URL from the MV info // Get the highest quality thumbnail URL from the MV info
thumbURL := MVInfo.Data[0].Attributes.Artwork.URL thumbURL := MVInfo.Data[0].Attributes.Artwork.URL
@ -1448,7 +1449,7 @@ func mvDownloader(adamID string, saveDir string, token string, storefront string
if err != nil { if err != nil {
fmt.Println("Failed to save MV thumbnail:", err) fmt.Println("Failed to save MV thumbnail:", err)
} else { } else {
fmt.Println("MV thumbnail saved successfully") //fmt.Println("MV thumbnail saved successfully")
tags = append(tags, fmt.Sprintf("cover=%s", covPath)) tags = append(tags, fmt.Sprintf("cover=%s", covPath))
} }
} }

View File

@ -36,7 +36,6 @@ type ConfigSet struct {
DlAlbumcoverForPlaylist bool `yaml:"dl-albumcover-for-playlist"` DlAlbumcoverForPlaylist bool `yaml:"dl-albumcover-for-playlist"`
MVAudioType string `yaml:"mv-audio-type"` MVAudioType string `yaml:"mv-audio-type"`
MVMax int `yaml:"mv-max"` MVMax int `yaml:"mv-max"`
SaveThumbnailImage bool `yaml:"save-thumbnail-image"`
} }
type Counter struct { type Counter struct {