Skip to content

Commit

Permalink
change update url
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotrekol committed Oct 20, 2016
1 parent 7ddbc45 commit c4eba6e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion osu!StreamCompanion/Code/Modules/Updater/Updater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class Updater : IModule, IMainWindowUpdater
{
private MainWindowUpdater _mainWindowHandle;
private string _onlineVersion = string.Empty;
private const string UpdateUrl = "http://osustats.ppy.sh/api/sc/version";
private string _downloadLink = "";
public bool Started { get; set; }
public void Start(ILogger logger)
Expand Down Expand Up @@ -58,7 +59,7 @@ private void UpdateVersion()
try
{
using (var wc = new System.Net.WebClient())
contents = wc.DownloadString("http://streamcompanion.pancakeapps.com/version");
contents = wc.DownloadString(UpdateUrl);
var splited = contents.Split(new[] { ',' }, 2);
_downloadLink = splited[1];
_onlineVersion = splited[0];
Expand Down

0 comments on commit c4eba6e

Please sign in to comment.