]> njoseph.me Git - nimcoon.git/blobdiff - config.nim
Store player config options in a hashtable
[nimcoon.git] / config.nim
diff --git a/config.nim b/config.nim
new file mode 100644 (file)
index 0000000..f55bc9d
--- /dev/null
@@ -0,0 +1,21 @@
+import tables
+
+# Your configuration here.
+
+# Supported video players in order of preference.
+# Should be able to play YouTube videos directly.
+let supportedPlayers* = ["mpv", "cvlc"]
+
+# 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