Fixed GetAlbumArtURL Issue

This commit is contained in:
streibeb 2014-12-29 16:04:59 -06:00
parent c67af5ae78
commit faa7542259

View File

@ -104,7 +104,7 @@ namespace SpotifyAPI.SpotifyLocalAPI
string[] lines = raw.Split(new string[] { "\n" }, StringSplitOptions.None); string[] lines = raw.Split(new string[] { "\n" }, StringSplitOptions.None);
foreach (string line in lines) foreach (string line in lines)
{ {
if (line.StartsWith("<meta property=\"og:image\"")) if (line.Trim().StartsWith("<meta property=\"og:image\""))
{ {
string[] l = line.Split(new string[] { "/" }, StringSplitOptions.None); string[] l = line.Split(new string[] { "/" }, StringSplitOptions.None);
return "http://o.scdn.co/" + albumsize + @"/" + l[4].Replace("\"", "").Replace(">", ""); return "http://o.scdn.co/" + albumsize + @"/" + l[4].Replace("\"", "").Replace(">", "");