fix playlist animated artwork

pull/20/head
itouakirai 3 months ago committed by GitHub
parent 4fba1ee0bc
commit 21925437c1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 5
      main.go

@ -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)
} }

Loading…
Cancel
Save