Skip to content

Commit

Permalink
Remove ability to download beatmap sets which are not ranked
Browse files Browse the repository at this point in the history
  • Loading branch information
thehowl committed Apr 12, 2018
1 parent 61bd3d4 commit 5329ebc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/download/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ func Download(c *api.Context) {
errorMessage(c, 404, "Set not found")
return
}
if set.RankedStatus <= 0 {
errorMessage(c, 406, "Unranked beatmap sets are currently not available for download, following a warning")
return
}

// use novideo only when we are requested to get a beatmap having a video
// and novideo is in the request
Expand Down

0 comments on commit 5329ebc

Please sign in to comment.