Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net>
# Your configuration here.
# Supported video players in order of preference.
# Your configuration here.
# Supported video players in order of preference.
# Only show these many results
let limit* = 10
# Only show these many results
let limit* = 10
-
-# Some NimCoon options mapped to player options
-let playerOptions* = { "mpv": {
- "musicOnly": "--no-video",
- "fullScreen": "--fullscreen"
- }.toTable,
- "cvlc": {
- "musicOnly": "--no-video",
- "fullScreen": "--fs"
- }.toTable
- }.toTable
std/[terminal],
strtabs,
strutils,
std/[terminal],
strtabs,
strutils,
var args = @[searchResults[number].url]
if musicOnly:
var args = @[searchResults[number].url]
if musicOnly:
- args.add(playerOptions[player]["musicOnly"])
- args.add(playerOptions[player]["fullScreen"])
+ args.add("--fullscreen")
# Play the video using the preferred/available media player
play(player, args)
# Play the video using the preferred/available media player
play(player, args)