默认嵌入mv封面
This commit is contained in:
parent
1ccc4932b7
commit
6ddccf4b21
@ -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
|
||||
mv-max: 2160
|
5
main.go
5
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))
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user