mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-24 06:56:27 +00:00
Removed Proxy = null
This commit is contained in:
parent
1c6f317dda
commit
629a09a980
@ -66,7 +66,6 @@ namespace SpotifyAPI.Local.Models
|
|||||||
string raw;
|
string raw;
|
||||||
using (WebClient wc = new WebClient())
|
using (WebClient wc = new WebClient())
|
||||||
{
|
{
|
||||||
wc.Proxy = null;
|
|
||||||
raw = wc.DownloadString("http://open.spotify.com/album/" + AlbumResource.Uri.Split(new[] { ":" }, StringSplitOptions.None)[2]);
|
raw = wc.DownloadString("http://open.spotify.com/album/" + AlbumResource.Uri.Split(new[] { ":" }, StringSplitOptions.None)[2]);
|
||||||
}
|
}
|
||||||
raw = raw.Replace("\t", "");
|
raw = raw.Replace("\t", "");
|
||||||
@ -99,7 +98,6 @@ namespace SpotifyAPI.Local.Models
|
|||||||
{
|
{
|
||||||
using (WebClient wc = new WebClient())
|
using (WebClient wc = new WebClient())
|
||||||
{
|
{
|
||||||
wc.Proxy = null;
|
|
||||||
string url = GetAlbumArtUrl(size);
|
string url = GetAlbumArtUrl(size);
|
||||||
if (url == "")
|
if (url == "")
|
||||||
return null;
|
return null;
|
||||||
@ -120,7 +118,6 @@ namespace SpotifyAPI.Local.Models
|
|||||||
{
|
{
|
||||||
using (WebClient wc = new WebClient())
|
using (WebClient wc = new WebClient())
|
||||||
{
|
{
|
||||||
wc.Proxy = null;
|
|
||||||
string url = GetAlbumArtUrl(size);
|
string url = GetAlbumArtUrl(size);
|
||||||
if (url == "")
|
if (url == "")
|
||||||
return null;
|
return null;
|
||||||
@ -137,7 +134,6 @@ namespace SpotifyAPI.Local.Models
|
|||||||
{
|
{
|
||||||
using (WebClient wc = new WebClient())
|
using (WebClient wc = new WebClient())
|
||||||
{
|
{
|
||||||
wc.Proxy = null;
|
|
||||||
string url = GetAlbumArtUrl(size);
|
string url = GetAlbumArtUrl(size);
|
||||||
if (string.IsNullOrEmpty(url))
|
if (string.IsNullOrEmpty(url))
|
||||||
return null;
|
return null;
|
||||||
@ -158,7 +154,6 @@ namespace SpotifyAPI.Local.Models
|
|||||||
{
|
{
|
||||||
using (WebClient wc = new WebClient())
|
using (WebClient wc = new WebClient())
|
||||||
{
|
{
|
||||||
wc.Proxy = null;
|
|
||||||
string url = GetAlbumArtUrl(size);
|
string url = GetAlbumArtUrl(size);
|
||||||
if (string.IsNullOrEmpty(url))
|
if (string.IsNullOrEmpty(url))
|
||||||
return null;
|
return null;
|
||||||
|
@ -46,7 +46,6 @@ namespace SpotifyAPI.Web.Auth
|
|||||||
{
|
{
|
||||||
using (WebClient wc = new WebClient())
|
using (WebClient wc = new WebClient())
|
||||||
{
|
{
|
||||||
wc.Proxy = null;
|
|
||||||
wc.Headers.Add("Authorization",
|
wc.Headers.Add("Authorization",
|
||||||
"Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + clientSecret)));
|
"Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + clientSecret)));
|
||||||
NameValueCollection col = new NameValueCollection
|
NameValueCollection col = new NameValueCollection
|
||||||
@ -125,8 +124,6 @@ namespace SpotifyAPI.Web.Auth
|
|||||||
{
|
{
|
||||||
using (WebClient wc = new WebClient())
|
using (WebClient wc = new WebClient())
|
||||||
{
|
{
|
||||||
wc.Proxy = null;
|
|
||||||
|
|
||||||
NameValueCollection col = new NameValueCollection
|
NameValueCollection col = new NameValueCollection
|
||||||
{
|
{
|
||||||
{"grant_type", "authorization_code"},
|
{"grant_type", "authorization_code"},
|
||||||
|
@ -23,7 +23,6 @@ namespace SpotifyAPI.Web.Auth
|
|||||||
{
|
{
|
||||||
using (WebClient wc = new WebClient())
|
using (WebClient wc = new WebClient())
|
||||||
{
|
{
|
||||||
wc.Proxy = null;
|
|
||||||
wc.Headers.Add("Authorization",
|
wc.Headers.Add("Authorization",
|
||||||
"Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + ClientSecret)));
|
"Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(ClientId + ":" + ClientSecret)));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user