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