« get me outta code hell

http-music - Command-line music player + utils (not a server!)
about summary refs log tree commit diff
diff options
context:
space:
mode:
-rwxr-xr-xsrc/http-music.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http-music.js b/src/http-music.js
index 7686b45..31f0dca 100755
--- a/src/http-music.js
+++ b/src/http-music.js
@@ -38,7 +38,7 @@ Promise.resolve()
       try {
         playlistText = await readFile(file, 'utf-8')
       } catch(err) {
-        if (silent) {
+        if (!silent) {
           console.error("Failed to read playlist file: " + file)
         }
 
@@ -246,7 +246,7 @@ Promise.resolve()
       }
     }
 
-    await openPlaylist('./playlist.json')
+    await openPlaylist('./playlist.json', true)
 
     await processArgv(process.argv, optionFunctions)