Exemplo n.º 1
0
        private string GetAlbumArtLink(libspotify.sp_image_size artSize = libspotify.sp_image_size.SP_IMAGE_SIZE_SMALL)
        {
            var image = Spotify.GetAlbumArtLink(_albumPtr, artSize);

            if (image == null)
            {
                image = Spotify.GetAlbumArtLink(_albumPtr, libspotify.sp_image_size.SP_IMAGE_SIZE_SMALL);
            }
            if (image == null)
            {
                image = Spotify.GetAlbumArtLink(_albumPtr, libspotify.sp_image_size.SP_IMAGE_SIZE_NORMAL);
            }
            if (image == null)
            {
                image = Spotify.GetAlbumArtLink(_albumPtr, libspotify.sp_image_size.SP_IMAGE_SIZE_LARGE);
            }
            if (image == null)
            {
                throw new Exception("Couldn't get art link");
            }
            return(image);
        }
Exemplo n.º 2
0
 public string GetAlbumArtLink()
 {
     return(Spotify.GetAlbumArtLink(AlbumPtr));
 }