« get me outta code hell

Remove files after playing again - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
authorliam4 <towerofnix@gmail.com>2017-05-30 17:07:20 +0000
committerliam4 <towerofnix@gmail.com>2017-05-30 17:07:20 +0000
commite8fa654bcb8a1b191e1c1ce5853c9f0cb529c11d (patch)
tree0e9828d7c8bc07cafd55832bb6b102b077399c81
parent0001e6af9b3bff269de175dfba965acabe95f899 (diff)
Remove files after playing again
-rw-r--r--play.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/play.js b/play.js
index b8b33f1..f7604f8 100644
--- a/play.js
+++ b/play.js
@@ -170,8 +170,8 @@ async function loopPlay(fn) {
 
 	while (wavFile) {
 		const nextPromise = downloadNext()
-		console.log(wavFile)
 		await playFile(wavFile)
+		await fsp.unlink(wavFile)
 		wavFile = await nextPromise
 	}
 }