From 2c1b6545d2f98f0649e5df03c7d86a8d28bb15e5 Mon Sep 17 00:00:00 2001 From: notgne2 Date: Wed, 27 Jan 2021 00:50:27 -0700 Subject: [PATCH] fully fix --- index.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/index.js b/index.js index ad668ae..6e2f273 100644 --- a/index.js +++ b/index.js @@ -145,25 +145,11 @@ async function thing() { const tagArgsString = tagArgs.map(([tag, val]) => `${tag} "${val}"`).join(' '); await exec(`id3v2 ${tagArgsString} "${path}"`); - if (await fs.exists(Path.join(os.homedir(), '.tmsu'))) { - console.log('adding tmsu tags'); - - const fsTagArgs = []; - - if (artist) fsTagArgs.push(['artist', artist]); - if (album) fsTagArgs.push(['album', album]); - - if (fsTagArgs.length > 0) { - const fsTagArgsString = fsTagArgs.map(([tag, val]) => `"${tag}=${val}"`).join(' '); - await exec(`tmsu tag "${path}" ${fsTagArgsString}`); - } - } - console.log(`Finished: ${album}/${artist} - ${title}`); } console.log('Finished everything, cleaning up...'); - await dir.cleanup(); + await fs.rmdir(TMP_DIR, { recursive: true }); console.log('Done!'); }