From a5dd84ec0e46f20954feafa83aea507c2da79a41 Mon Sep 17 00:00:00 2001 From: Florrie Date: Tue, 29 May 2018 16:05:14 -0300 Subject: Cache cachce chach ah --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'index.js') diff --git a/index.js b/index.js index d064fb5..f85d101 100644 --- a/index.js +++ b/index.js @@ -42,6 +42,8 @@ class InternalApp extends EventEmitter { async function main() { const internalApp = new InternalApp() await internalApp.setup() + + /* await internalApp.startPlaying('http://billwurtz.com/cable-television.mp3') await new Promise(r => setTimeout(r, 2000)) internalApp.togglePause() @@ -49,6 +51,11 @@ async function main() { internalApp.togglePause() await new Promise(r => setTimeout(r, 2000)) internalApp.stopPlaying() + */ + + for (const item of require('./flat.json').items) { + await internalApp.download(item.downloaderArg) + } } main().catch(err => console.error(err)) -- cgit 1.3.0-6-gf8a5