mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 06:56:27 +00:00
parent
8f76b4c36f
commit
04c1687cec
@ -51,8 +51,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];
|
||||
}
|
||||
@ -110,9 +108,12 @@ namespace SpotifyAPI.Local
|
||||
using (var wc = new ExtendedWebClient())
|
||||
{
|
||||
if (SpotifyLocalAPI.IsSpotifyRunning())
|
||||
{
|
||||
wc.Encoding = Encoding.UTF8;
|
||||
response = "[ " + wc.DownloadString(address) + " ]";
|
||||
}
|
||||
}
|
||||
}
|
||||
catch
|
||||
{
|
||||
return string.Empty;
|
||||
|
Loading…
Reference in New Issue
Block a user