mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-10-17 07:23:08 +01:00
Merge branch 'master' of github.com:JohnnyCrazy/SpotifyAPI-NET
This commit is contained in:
commit
163ed9b52f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user