fix playlist animated artwork

This commit is contained in:
itouakirai
2024-06-25 11:58:27 +08:00
committed by GitHub
parent 4fba1ee0bc
commit 21925437c1

View File

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