« get me outta code hell

Let 'source' property simply open a file - http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
path: root/src/general-util.js
diff options
context:
space:
mode:
authorFlorrie <towerofnix@gmail.com>2018-02-18 19:44:29 -0400
committerFlorrie <towerofnix@gmail.com>2018-02-18 19:44:46 -0400
commit86e42f7a7ec5cf27e2186d111017fe7943acd079 (patch)
tree6bab73d4557dec9b42d388f7a39f31afb232eff9 /src/general-util.js
parent820b7940db2f1d533848f024fbb1d6f4841ce598 (diff)
Let 'source' property simply open a file
Diffstat (limited to 'src/general-util.js')
-rw-r--r--src/general-util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/general-util.js b/src/general-util.js
index 63ef1b2..825dd90 100644
--- a/src/general-util.js
+++ b/src/general-util.js
@@ -26,7 +26,7 @@ function downloadPlaylistFromURL(url) {
 }
 
 function downloadPlaylistFromLocalPath(path) {
-  return readFile(path)
+  return readFile(path).then(buf => buf.toString())
 }
 
 module.exports.downloadPlaylistFromOptionValue = function(arg) {