Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions CCapi/Form1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ private void tBSearch_GotFocus(object sender, EventArgs e) {
}

private void bSkinDownload_Click(object sender, EventArgs e) {
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("https://classicube.s3.amazonaws.com/skins/" + tbUserName.Text + ".png");
HttpWebRequest request = (HttpWebRequest)HttpWebRequest.Create("http://cdn.classicube.net/skin/" + tbUserName.Text + ".png");
request.Method = "HEAD";
try {
request.GetResponse();
System.Diagnostics.Process.Start("https://classicube.s3.amazonaws.com/skins/" + tbUserName.Text + ".png");
System.Diagnostics.Process.Start("http://cdn.classicube.net/skin/" + tbUserName.Text + ".png");
}
catch {
MessageBox.Show("This player has no custom skin!", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
Expand Down Expand Up @@ -104,7 +104,7 @@ private void cbUTC_CheckedChanged(object sender, EventArgs e) {

private Image getAvatar(string name) {
try {
Stream stream = new WebClient().OpenRead("https://classicube.s3.amazonaws.com/face/" + name + ".png");
Stream stream = new WebClient().OpenRead("http://cdn.classicube.net/face/" + name + ".png");
return Image.FromStream(stream);
} catch {
MessageBox.Show("Failed to retrieve skin. ClassiCube.net might be down!", "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
Expand Down