File tree Expand file tree Collapse file tree 2 files changed +20
-3
lines changed
WebPerformanceCalculator/Parsers Expand file tree Collapse file tree 2 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,7 @@ Get all known countries in the player database
5757---
5858
5959## Running
60- Requires [ osu-tools] ( https://github.com/stanriders/osu-tools ) built in the same folder as workers for pp calculation.
61-
60+ ``` dotnet WebPerformanceCalculator.dll ```
6261### appsettings.json
6362```
6463{
@@ -74,7 +73,25 @@ Requires [osu-tools](https://github.com/stanriders/osu-tools) built in the same
7473
7574 "CommitHashFileName": "commithash" // path to file with commit hash, can be relative
7675}
76+ ```
77+
78+ ---
79+
80+ ## Running workers
81+ ``` dotnet WebPerformanceCalculator.Worker.dll ```
7782
83+ ### appsettings.json
84+ ```
85+ {
86+ "CalculatorPath": "/home/pp/osu-tools/bin/netcoreapp3.1", // path to a PerformanceCalculator.dll
87+ "CalculationModuleFileName": "osu.Game.Rulesets.Osu.dll",
88+ "APIKey": "", // osu! API v1 key
89+
90+ "GetWorkEndpointAddress": "http://localhost:6000/api/workers", // endpoint to get work data from, GET
91+ "SubmitWorkEndpointAddress": "http://localhost:6000/api/workers", // endpoint to submit work data to, POST
92+ "PollingRate": 1000, // how often to poll work endpoint
93+ "Key": "abcdefghjklmnopqrstuvwxyz0123456789" // worker endpoints access key
94+ }
7895```
7996
8097ASP.NET 5.0
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public static class BeatmapLinkParser
3232 var regexGroups = regexMatch . Groups . Values . ToArray ( ) ;
3333
3434 bool isNew = regexGroups [ 1 ] . Value != "b" && regexGroups [ 1 ] . Value != "s" ; // are we using new website or not
35- bool isSet = ( regexGroups [ 1 ] . Value == "beatmapsets" && regexGroups . Length < 3 ) || regexGroups [ 1 ] . Value == "s" ;
35+ bool isSet = ( regexGroups [ 1 ] . Value == "beatmapsets" && regexGroups . Length < 4 ) || regexGroups [ 1 ] . Value == "s" ;
3636
3737 if ( isNew )
3838 {
You can’t perform that action at this time.
0 commit comments