« get me outta code hell

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:
Diffstat (limited to 'src/play.js')
-rwxr-xr-xsrc/play.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/play.js b/src/play.js
index 8f52e63..c754836 100755
--- a/src/play.js
+++ b/src/play.js
@@ -302,7 +302,10 @@ async function main(args) {
 
       const pathString = util.nextArg()
       const group = filterPlaylistByPathString(sourcePlaylist, pathString)
-      activePlaylist.items.push(group)
+
+      if (group) {
+        activePlaylist.items.push(group)
+      }
     },
 
     'k': util => util.alias('-keep'),