fix playlist animated artwork
This commit is contained in:
parent
4fba1ee0bc
commit
21925437c1
5
main.go
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…
x
Reference in New Issue
Block a user