diff options
author | Florrie <towerofnix@gmail.com> | 2018-02-18 19:44:29 -0400 |
---|---|---|
committer | Florrie <towerofnix@gmail.com> | 2018-02-18 19:44:46 -0400 |
commit | 86e42f7a7ec5cf27e2186d111017fe7943acd079 (patch) | |
tree | 6bab73d4557dec9b42d388f7a39f31afb232eff9 /src/general-util.js | |
parent | 820b7940db2f1d533848f024fbb1d6f4841ce598 (diff) |
Let 'source' property simply open a file
Diffstat (limited to 'src/general-util.js')
-rw-r--r-- | src/general-util.js | 2 |
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) { |