mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-23 22:56:25 +00:00
Moved Encoding to ExtendedWebClient
This commit is contained in:
parent
163ed9b52f
commit
1af1d37a35
@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
|
||||
namespace SpotifyAPI.Local
|
||||
{
|
||||
@ -11,7 +12,7 @@ namespace SpotifyAPI.Local
|
||||
{
|
||||
// TODO Remove once SSL Issues are resolved #115
|
||||
ServicePointManager.ServerCertificateValidationCallback = (s, certificate, chain, sslPolicyErrors) => true;
|
||||
|
||||
Encoding = Encoding.UTF8;
|
||||
Timeout = 2000;
|
||||
Headers.Add("Origin", "https://embed.spotify.com");
|
||||
Headers.Add("Referer", "https://embed.spotify.com/?uri=spotify:track:5Zp4SWOpbuOdnsxLqwgutt");
|
||||
|
@ -114,7 +114,6 @@ namespace SpotifyAPI.Local
|
||||
{
|
||||
if (SpotifyLocalAPI.IsSpotifyRunning())
|
||||
{
|
||||
wc.Encoding = Encoding.UTF8;
|
||||
response = "[ " + wc.DownloadString(address) + " ]";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user