Skip to content
This repository has been archived by the owner on Jul 16, 2023. It is now read-only.

Commit

Permalink
Update URLs to the new website
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyrrrz committed May 7, 2019
1 parent c3249f2 commit 7d50d46
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions OsuHelper/ViewModels/Dialogs/BeatmapDetailsViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,17 @@ public BeatmapDetailsViewModel(SettingsService settingsService, DataService data

public void OpenPage()
{
Process.Start($"https://osu.ppy.sh/b/{Beatmap.Id}");
Process.Start($"https://osu.ppy.sh/beatmaps/{Beatmap.Id}");
}

public void Download()
{
var url = $"https://osu.ppy.sh/d/{Beatmap.MapSetId}";
if (_settingsService.DownloadWithoutVideo) url += 'n';
var url = $"https://osu.ppy.sh/beatmapsets/{Beatmap.MapSetId}/download";

// If configured to download without video - append a parameter to the request
if (_settingsService.DownloadWithoutVideo)
url += "?noVideo=1";

Process.Start(url);
}

Expand Down

0 comments on commit 7d50d46

Please sign in to comment.