Allow CLI player controls for music

Signed-off-by: Joseph Nuthalapati's avatarJoseph Nuthalapati <[email protected]>
parent e9f0c7d0
Pipeline #130262772 passed with stages
in 1 minute and 37 seconds
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment