Skip to content
This repository was archived by the owner on Jul 14, 2023. It is now read-only.

Commit d43d535

Browse files
committed
1.0.1
Fix noVideo, noBackground, noHitsound, noStoryboard are reversed
1 parent 1d8eacc commit d43d535

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

bin/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ const download = (filename, id) => {
171171
const file = fs.createWriteStream(filename);
172172
let receivedBytes = 0
173173

174-
request.get(`https://api.nerinyan.moe/d/${id}?nv=${video}&nh=${hitsound}&nsb=${storyboard}&nb=${background}`)
174+
request.get(`https://api.nerinyan.moe/d/${id}?noVideo=${!video}&noBg=${!background}&NoHitsound=${!hitsound}&NoStoryboard=${!storyboard}`)
175175
.on('response', (response) => {
176176
if (response.statusCode !== 200) {
177177
reject(`Beatmap ${id} download falled!: ${response.statusCode}`)

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "obd-cli",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "The CLI tool help to download osu! beatmaps mirror by Beatmap ID or Mapset ID",
55
"main": "./bin/index.js",
66
"scripts": {
@@ -33,4 +33,4 @@
3333
"request": "^2.88.2",
3434
"yargs": "^17.6.2"
3535
}
36-
}
36+
}

0 commit comments

Comments
 (0)