diff options
author | Florrie <towerofnix@gmail.com> | 2018-01-17 18:33:52 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2018-01-17 18:33:52 -0400 |
commit | a701fcf0d35f667b5ed32cfaed88db3d2872a9cc (patch) | |
tree | aa2ae3d2e29b237f01a1a1936919be10d0b8e831 /src/downloaders.js | |
parent | fb2f9ecda0531a950a871c6b85d42e913f3874f7 (diff) | |
parent | 7831b28be25aae1e890ee1f4d3bd6969023c10da (diff) |
Merge branch 'master' of https://github.com/towerofnix/http-music
Diffstat (limited to 'src/downloaders.js')
-rw-r--r-- | src/downloaders.js | 2 |
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) } |