opl- / beatsaber-http-status

Live game status over web sockets.
MIT License
105 stars 36 forks source link

[Feature Request] Get beat saver song code? #32

Closed Readie1593 closed 4 years ago

Readie1593 commented 4 years ago

Ive read through the source and I have no clue how it works so IDK if you could find a way to have the plugin get the current song code

opl- commented 4 years ago

I'm not sure if I could grab it easily without depending on Beat Saver and I can't really look into it right now. Might end up adding it at some point in the future, but for now no promises. PRs welcome.

opl- commented 4 years ago

ErisApps made a PR that finally correctly exposes the song hash for custom levels. This means that you can now use the https://beatsaver.com/api/maps/by-hash/SONG_HASH BeatSaver endpoint to retrieve information such as the song code and ratings from the BeatSaver API.

Hopefully this allows you to achieve your goal.