Merge branch 'master' of github.com:JohnnyCrazy/SpotifyAPI-NET

This commit is contained in:
Jonas Dellinger 2017-09-03 14:45:10 +02:00
commit 163ed9b52f

View File

@ -56,8 +56,6 @@ namespace SpotifyAPI.Local
return null;
}
response = response.Replace("\\n", "");
byte[] bytes = Encoding.Default.GetBytes(response);
response = Encoding.UTF8.GetString(bytes);
List<StatusResponse> raw = JsonConvert.DeserializeObject<List<StatusResponse>>(response);
return raw[0];
}
@ -115,7 +113,10 @@ namespace SpotifyAPI.Local
using (var wc = new ExtendedWebClient())
{
if (SpotifyLocalAPI.IsSpotifyRunning())
{
wc.Encoding = Encoding.UTF8;
response = "[ " + wc.DownloadString(address) + " ]";
}
}
}
catch