From 4ff150e42f03d51ddfed228e7da33b19eb773eaf Mon Sep 17 00:00:00 2001 From: Florrie Date: Sat, 3 Mar 2018 08:38:19 -0400 Subject: Output sane extnames in local downloader --- src/downloaders.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/downloaders.js b/src/downloaders.js index 138b2d6..663e493 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) } -- cgit 1.3.0-6-gf8a5