« get me outta code hell

Merge branch 'master' of https://github.com/towerofnix/http-music - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/downloaders.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-01-17 18:33:52 -0400
committerFlorrie <towerofnix@gmail.com>2018-01-17 18:33:52 -0400
commita701fcf0d35f667b5ed32cfaed88db3d2872a9cc (patch)
treeaa2ae3d2e29b237f01a1a1936919be10d0b8e831 /src/downloaders.js
parentfb2f9ecda0531a950a871c6b85d42e913f3874f7 (diff)
parent7831b28be25aae1e890ee1f4d3bd6969023c10da (diff)
Merge branch 'master' of https://github.com/towerofnix/http-music
Diffstat (limited to 'src/downloaders.js')
-rw-r--r--src/downloaders.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/downloaders.js b/src/downloaders.js
index f5efa3e..8ac3a92 100644
--- a/src/downloaders.js
+++ b/src/downloaders.js
@@ -79,7 +79,7 @@ function makeLocalDownloader() {
     // TODO: Is it necessary to sanitize here?
     // Haha, the answer to "should I sanitize" is probably always YES..
     const base = path.basename(arg, path.extname(arg))
-    const file = dir + '/' + sanitize(base) + '.mp3'
+    const file = dir + '/' + sanitize(base) + path.extname(arg)
     return copyFile(arg, file)
       .then(() => file)
   }