Revision 874c37b1
Added by Leszek Koltunski about 4 years ago
src/main/java/org/distorted/scores/RubikScoresDownloader.java | ||
---|---|---|
204 | 204 |
} |
205 | 205 |
} |
206 | 206 |
} |
207 |
else |
|
208 |
{ |
|
209 |
if( row.startsWith("comm") ) |
|
210 |
{ |
|
211 |
int colon = row.indexOf(':'); |
|
212 |
|
|
213 |
if( colon>0 ) |
|
214 |
{ |
|
215 |
String country = row.substring(colon+1); |
|
216 |
RubikScores scores = RubikScores.getInstance(); |
|
217 |
scores.setCountry(country); |
|
218 |
} |
|
219 |
} |
|
220 |
} |
|
207 | 221 |
} |
208 | 222 |
|
209 | 223 |
/////////////////////////////////////////////////////////////////////////////////////////////////// |
... | ... | |
311 | 325 |
String veri = scores.isVerified() ? name : ""; |
312 | 326 |
int numRuns = scores.getNumRuns(); |
313 | 327 |
int numPlay = scores.getNumPlays(); |
328 |
String country = scores.getCountry(); |
|
314 | 329 |
|
315 | 330 |
String url="https://distorted.org/magic/cgi-bin/download.cgi"; |
316 |
url += "?n="+name+"&v="+veri+"&r="+numRuns+"&p="+numPlay+"&e="+mVersion+"d"; |
|
331 |
url += "?n="+name+"&v="+veri+"&r="+numRuns+"&p="+numPlay+"&c="+country+"&e="+mVersion+"d";
|
|
317 | 332 |
url += "&o="+RubikObjectList.getObjectList()+"&min=0&max="+MAX_LEVEL+"&l="+MAX_PLACES; |
318 | 333 |
|
319 | 334 |
return url; |
Also available in: Unified diff
Allow the server to correct our notion of country.