Skip to content

Commit

Permalink
0.7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kinsi55 committed Mar 15, 2022
1 parent a6dd865 commit 42e6296
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Util/SongDownloader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ public static async Task<string> GetSongDescription(string key, CancellationToke
var baseUrl = PluginConfig.Instance.apiUrlOverride;

if(baseUrl.Length == 0)
baseUrl = "https://api.beatsaver.com";
baseUrl = "https://api.beatsaver.com/maps/id";

using(var resp = await client.GetAsync($"{baseUrl}/maps/id/{key.ToLowerInvariant()}", HttpCompletionOption.ResponseHeadersRead, token)) {
using(var resp = await client.GetAsync($"{baseUrl}/{key.ToLowerInvariant()}", HttpCompletionOption.ResponseHeadersRead, token)) {
if(resp.StatusCode != HttpStatusCode.OK)
throw new Exception($"Unexpected HTTP response: {resp.StatusCode} {resp.ReasonPhrase}");

Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "BetterSongSearch",
"name": "BetterSongSearch",
"author": "Kinsi55",
"version": "0.7.0",
"version": "0.7.1",
"description": "Search and download songs with a lot of filtering and sorting options and without frustration!",
"gameVersion": "1.18.0",
"dependsOn": {
Expand Down

0 comments on commit 42e6296

Please sign in to comment.