diff --git a/cli/pulse.js b/cli/pulse.js index bb44afe..495451b 100755 --- a/cli/pulse.js +++ b/cli/pulse.js @@ -41,8 +41,6 @@ let error = (text) => { process.exit(1); }; -if (!config.contenttype) config.contenttype = "audio/" + config.output.format; - function pcmconv(opt = {}, pcmopt) { return new FFmpeg({ args: [ @@ -208,6 +206,8 @@ argv.forEach(async (key, index) => { } }); +if (!config.contenttype) config.contenttype = "audio/" + config.output.format; + server.on("error", (err) => console.error(`[${Date()}]`, err)); server.on("request", (req, res) => { let id = Math.random(); diff --git a/example/Music/demo.mp3 b/example/Music/demo.mp3 deleted file mode 100644 index 4cfa38f..0000000 Binary files a/example/Music/demo.mp3 and /dev/null differ diff --git a/package.json b/package.json index b489a1f..63aa8e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "openradio", - "version": "1.1.48", + "version": "1.1.49", "description": "Let you create your own livestream radio.", "main": "./core", "scripts": {