Fix broken directPlay
authorJoseph Nuthalapati <njoseph@thoughtworks.com>
Wed, 19 Feb 2020 05:27:44 +0000 (10:57 +0530)
committerJoseph Nuthalapati <njoseph@thoughtworks.com>
Wed, 19 Feb 2020 05:27:44 +0000 (10:57 +0530)
lib.nim

diff --git a/lib.nim b/lib.nim
index fe9d5c02cf3070da046176f742b1293b7505a74e..53c2e5d5a98bbde84372d82a0f4f7dd62a21c459 100644 (file)
--- a/lib.nim
+++ b/lib.nim
@@ -63,4 +63,4 @@ proc directPlay*(searchQuery: string, player: string) =
   if searchQuery.startswith("magnet:"):
     discard execProcess("peerflix", args=[url, &"--{player}"], options=processOptions)
   else:
-    discard execProcess("peerflix", args=[url], options=processOptions)
+    discard execProcess(player, args=[url], options=processOptions)