From e3700394f30490b0e9fd54ffc053f892fa1eddf7 Mon Sep 17 00:00:00 2001 From: Erin O'Connell Date: Sat, 2 Apr 2016 08:11:57 -0600 Subject: [PATCH] GetAlbumArtUrl() fix Fixed GetAlbumArtUrl --- SpotifyAPI/Local/Models/Track.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) mode change 100644 => 100755 SpotifyAPI/Local/Models/Track.cs diff --git a/SpotifyAPI/Local/Models/Track.cs b/SpotifyAPI/Local/Models/Track.cs old mode 100644 new mode 100755 index f8f03206..10b1f3bf --- a/SpotifyAPI/Local/Models/Track.cs +++ b/SpotifyAPI/Local/Models/Track.cs @@ -70,12 +70,20 @@ namespace SpotifyAPI.Local.Models raw = wc.DownloadString("http://open.spotify.com/album/" + AlbumResource.Uri.Split(new[] { ":" }, StringSplitOptions.None)[2]); } raw = raw.Replace("\t", ""); + + // < meta property = "og:image" content = "http://o.scdn.co/cover/12b318ffe0e4c92f9b4e1486e4726a57e6437ca7" > + // Spotify changed the response so I am now getting the substring from the first line that parses out the above tag. string[] lines = raw.Split(new[] { "\n" }, StringSplitOptions.None); + string startString = ""; foreach (string line in lines) { - if (line.Trim().StartsWith("", ""); } }