fix Config to config

This commit is contained in:
itouakirai
2024-06-25 11:34:55 +08:00
committed by GitHub
parent 9f4636598c
commit 4fba1ee0bc

View File

@@ -1392,7 +1392,7 @@ func rip(albumId string, token string, storefront string, userToken string) erro
fmt.Println("Failed to write cover.")
}
//get animated artwork
if Config.SaveAnimatedArtwork && meta.Data[0].Attributes.EditorialVideo.MotionSquareVideo1x1.Video != "" {
if config.SaveAnimatedArtwork && meta.Data[0].Attributes.EditorialVideo.MotionSquareVideo1x1.Video != "" {
motionvideoUrl, err := extractVideo(meta.Data[0].Attributes.EditorialVideo.MotionSquareVideo1x1.Video)
if err != nil {
fmt.Println("no motion video.\n", err)