Skip to content

Commit

Permalink
1.0.1
Browse files Browse the repository at this point in the history
File MIME type check
  • Loading branch information
MegaSa1nt committed Apr 4, 2024
1 parent c19b4b0 commit 02c2eb9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# GDPS SFX convert API
## This API converts SFXs to OGG to use it properly in Geometry Dash.
### This API converts SFXs to OGG to use it properly in Geometry Dash.

### How to run:
1. Use [**my dashboard**](https://github.com/MegaSa1nt/GMDprivateServer)
Expand Down
3 changes: 2 additions & 1 deletion gcs.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,8 @@ function checkQuery(song) {
if((typeof song.body.name == 'undefined' || !song.body.name.length) ||
(typeof song.body.server == 'undefined' || !song.body.server.length) ||
(typeof song.body.token == 'undefined' || !song.body.token.length) ||
(typeof song.file == 'undefined') || config.mode == config.domainlist.includes(song.body.server.split('://')[1].split('/')[0])) return false;
(typeof song.file == 'undefined') || config.mode == config.domainlist.includes(song.body.server.split('://')[1].split('/')[0]) ||
(song.file.mimetype != "audio/mpeg" && song.file.mimetype != "audio/mp3")) return false;
return true;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sa1nt.sfx",
"version": "1.0.0",
"version": "1.0.1",
"description": "This API converts SFXs for GDPSs to OGG to be able to use it in Geometry Dash properly.",
"main": "gcs.js",
"scripts": {
Expand Down

0 comments on commit 02c2eb9

Please sign in to comment.