X-Git-Url: https://njoseph.me/gitweb/nimcoon.git/blobdiff_plain/e9f0c7d0facb6a454a204e3b3ce66d521f40d6e8..e71f26f3b64d2bbe6c7b8d355a82c33f985aadf0:/src/lib.nim diff --git a/src/lib.nim b/src/lib.nim index 1b6ed93..f5ee8a5 100644 --- a/src/lib.nim +++ b/src/lib.nim @@ -51,7 +51,10 @@ proc presentVideoOptions*(searchResults: seq[SearchResult]) = proc play*(player: string, args: openArray[string], title: string) = styledEcho "\n", fgGreen, "Playing ", styleBright, fgMagenta, title - discard execProcess(player, args=args, options=processOptions) + if "--no-video" in args: + discard execShellCmd(&"{player} {args.join(\" \")}") + else: + discard execProcess(player, args=args, options=processOptions) proc download*(args: openArray[string], title: string) = styledEcho "\n", fgGreen, "Downloading ", styleBright, fgMagenta, title