File tree 2 files changed +20
-3
lines changed
WebPerformanceCalculator/Parsers
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
57
57
---
58
58
59
59
## 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 ```
62
61
### appsettings.json
63
62
```
64
63
{
@@ -74,7 +73,25 @@ Requires [osu-tools](https://github.com/stanriders/osu-tools) built in the same
74
73
75
74
"CommitHashFileName": "commithash" // path to file with commit hash, can be relative
76
75
}
76
+ ```
77
+
78
+ ---
79
+
80
+ ## Running workers
81
+ ``` dotnet WebPerformanceCalculator.Worker.dll ```
77
82
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
+ }
78
95
```
79
96
80
97
ASP.NET 5.0
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ public static class BeatmapLinkParser
32
32
var regexGroups = regexMatch . Groups . Values . ToArray ( ) ;
33
33
34
34
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" ;
36
36
37
37
if ( isNew )
38
38
{
You can’t perform that action at this time.
0 commit comments