From f5204ae6cbbe392c8b1dff4da324f898ea5ba28f Mon Sep 17 00:00:00 2001 From: AlexNg Date: Fri, 19 Apr 2024 15:04:46 +0800 Subject: [PATCH] feat: Adding extensions to config --- src/root.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/root.go b/src/root.go index 1cb81e2..f728a18 100644 --- a/src/root.go +++ b/src/root.go @@ -90,6 +90,13 @@ func init() { os.Exit(1) } + // Preferred extensions + viper.SetDefault("preferred_extensions", []string{ + ".mp4", + ".avi", + ".webm", + }) + // Initialize subcommands initCache() }