« get me outta code hell

Local file downloader - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/play.js
diff options
context:
space:
mode:
authorliam4 <towerofnix@gmail.com>2017-06-04 10:05:15 -0300
committerliam4 <towerofnix@gmail.com>2017-06-04 10:05:35 -0300
commit507bd7b0c0f185a87b4213b5c95b3b3859fe9528 (patch)
tree72b3ad05a11f80b6155fddb378148f27d9d5e952 /src/play.js
parent308fa9eaaad7b48f4362bdc301a81699943b2ede (diff)
Local file downloader
Diffstat (limited to 'src/play.js')
-rwxr-xr-xsrc/play.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/play.js b/src/play.js
index 38b05d5..bc9324d 100755
--- a/src/play.js
+++ b/src/play.js
@@ -185,6 +185,9 @@ readFile('./playlist.json', 'utf-8')
       } else if (downloaderType === 'youtube') {
         console.log("Using YouTube downloader.")
         downloader = downloaders.makeYouTubeDownloader()
+      } else if (downloaderType === 'local') {
+        console.log("Using local file downloader.")
+        downloader = downloaders.makeLocalDownloader()
       } else {
         console.error("Invalid downloader type: " + downloaderType)
         return