diff --git a/src/ChecksumResolver.js b/src/ChecksumResolver.js index 4759010..ec671d8 100644 --- a/src/ChecksumResolver.js +++ b/src/ChecksumResolver.js @@ -89,7 +89,7 @@ class ChecksumResolver extends React.Component { audible-tools {' '} {new Date().getFullYear()} - {'. V 0.2'} + {'. V 0.3'} ); }) diff --git a/src/OnlineConverter.jsx b/src/OnlineConverter.jsx index 9f5f17b..000857b 100644 --- a/src/OnlineConverter.jsx +++ b/src/OnlineConverter.jsx @@ -15,16 +15,16 @@ const downloadFile= (data, outputFileName, outputFormat) => { } const getCommandAsList = (file, outputFileName, outputFormat, activationBytes) =>{ const outputFormatCodecMaps = [ - { format: "m4b", codec: "-c copy" }, - { format: "flac", codec: "-c:a flac" }, - { format: "mp3", codec: "-c:a libmp3lame" }, + { format: "m4b", codec: ["-c","copy"] }, + { format: "flac", codec: ["-c:a","flac"] }, + { format: "mp3", codec: ["-c:a","libmp3lame"] }, ]; const codec = outputFormatCodecMaps.filter(x => x.format === outputFormat)[0].codec; const filename = file.name; return [`-y`, '-activation_bytes', activationBytes, '-i', filename, - codec, + ...codec, outputFileName ]; }