Skip to content

Commit

Permalink
Fix default content type
Browse files Browse the repository at this point in the history
  • Loading branch information
Yonle committed Jul 30, 2021
1 parent 97ad41c commit e5cb074
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cli/pulse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -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();
Expand Down
Binary file removed example/Music/demo.mp3
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit e5cb074

Please sign in to comment.