From 6ddccf4b219f314f867224012ba464813725a0a4 Mon Sep 17 00:00:00 2001 From: itouakirai Date: Tue, 18 Feb 2025 13:34:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E5=B5=8C=E5=85=A5mv=E5=B0=81?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.yaml | 3 +-- main.go | 5 +++-- utils/structs/structs.go | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/config.yaml b/config.yaml index be60959..5551435 100644 --- a/config.yaml +++ b/config.yaml @@ -43,5 +43,4 @@ use-songinfo-for-playlist: false #if set true,will download album cover for playlist dl-albumcover-for-playlist: false mv-audio-type: atmos #atmos ac3 aac -mv-max: 2160 -save-thumbnail-image: false #true or false of thumbnail image \ No newline at end of file +mv-max: 2160 \ No newline at end of file diff --git a/main.go b/main.go index a629ddf..0974d63 100644 --- a/main.go +++ b/main.go @@ -1436,7 +1436,8 @@ func mvDownloader(adamID string, saveDir string, token string, storefront string // Extract and save thumbnail if enabled var covPath string - if Config.SaveThumbnailImage { + //强制嵌入封面 + if true { // Get the highest quality thumbnail URL from the MV info thumbURL := MVInfo.Data[0].Attributes.Artwork.URL @@ -1448,7 +1449,7 @@ func mvDownloader(adamID string, saveDir string, token string, storefront string if err != nil { fmt.Println("Failed to save MV thumbnail:", err) } else { - fmt.Println("MV thumbnail saved successfully") + //fmt.Println("MV thumbnail saved successfully") tags = append(tags, fmt.Sprintf("cover=%s", covPath)) } } diff --git a/utils/structs/structs.go b/utils/structs/structs.go index 639165b..10ebfcf 100644 --- a/utils/structs/structs.go +++ b/utils/structs/structs.go @@ -36,7 +36,6 @@ type ConfigSet struct { DlAlbumcoverForPlaylist bool `yaml:"dl-albumcover-for-playlist"` MVAudioType string `yaml:"mv-audio-type"` MVMax int `yaml:"mv-max"` - SaveThumbnailImage bool `yaml:"save-thumbnail-image"` } type Counter struct {