« get me outta code hell

Was I even awake - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorliam4 <towerofnix@gmail.com>2017-07-25 11:03:03 -0300
committerliam4 <towerofnix@gmail.com>2017-07-25 11:03:03 -0300
commit943b3447c7dc6743ec7c6d1c644f2eb9cc4669cb (patch)
treed18eebbdc55fa55d01cf9aa4652a538adf15e585 /src
parentbb1a0d08e408f949d3b94206f8b5883a659f4d0d (diff)
Was I even awake
Diffstat (limited to 'src')
-rw-r--r--src/downloaders.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/downloaders.js b/src/downloaders.js
index c3dc43d..aa0bc44 100644
--- a/src/downloaders.js
+++ b/src/downloaders.js
@@ -107,7 +107,7 @@ function makeConverterDownloader(downloader, type) {
     const inFile = await downloader(arg)
     const base = path.basename(inFile, path.extname(inFile))
     const tempDir = tempy.directory()
-    const outFile = tempDir + base + '.' + type
+    const outFile = `${tempDir}/${base}.${type}`
 
     await promisifyProcess(spawn('avconv', ['-i', inFile, outFile]), false)