« get me outta code hell

Cache cachce chach ah - mtui - Music Text User Interface - user-friendly command line music player
about summary refs log tree commit diff
path: root/index.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-05-29 16:05:14 -0300
committerFlorrie <towerofnix@gmail.com>2018-05-29 16:05:14 -0300
commita5dd84ec0e46f20954feafa83aea507c2da79a41 (patch)
treebc2241312777a8ce15aaa83eace06ba5ebc81443 /index.js
parentf7009d9ab4aa4c140e9faa0190846b5b6ec8239a (diff)
Cache cachce chach ah
Diffstat (limited to 'index.js')
-rw-r--r--index.js7
1 files changed, 7 insertions, 0 deletions
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))