osudroid / osu-droid

http://osudroid.moe
Apache License 2.0
498 stars 74 forks source link

Add beatmapset ranking status #343

Closed Rian8337 closed 4 weeks ago

Rian8337 commented 1 month ago

This will provide a quick way for players to know if a beatmap will award dpp or not.

For testing purposes, I used Chimu's v1/set/{set_id} endpoint to retrieve a beatmapset's ranking status as of now. This is somewhat wrong because ranking statuses are per-beatmap rather than per-beatmapset, but it is what it is. In the future, the endpoint will be replaced with a new one that uses MD5 hash rather than beatmapset ID, as beatmapset ID is not tracked in old beatmaps. I will put this PR in draft until that happens.

Note that the ranking status will only display when you are in global leaderboard, which means it only works if you are logged in.

Screenshot_20240323_110833

Rian8337 commented 4 weeks ago

This uses osu.direct API now - we have obtained permission to use it.