diff --git a/README.md b/README.md index 4c6fc0c..6349be3 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/gcs.js b/gcs.js index 1187086..0608e08 100644 --- a/gcs.js +++ b/gcs.js @@ -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; } diff --git a/package.json b/package.json index 7c1d0c4..0a56f18 100644 --- a/package.json +++ b/package.json @@ -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": {