From 494f9271f4c689650198ce670f4f0aa1d2d9b162 Mon Sep 17 00:00:00 2001 From: Seednode Date: Sun, 10 Sep 2023 21:08:51 -0500 Subject: [PATCH] Updated readme --- README.md | 4 ++-- cmd/root.go | 4 ++-- cmd/web.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b84b1ce..2de6637 100644 --- a/README.md +++ b/README.md @@ -115,7 +115,7 @@ Flags: -d, --debug expose debug endpoint -f, --filter enable filtering -h, --help help for roulette - --images enable support for audio files (default true) + --images enable support for image files (default true) --maximum-files uint32 skip directories with file counts over this value (default 4294967295) --minimum-files uint32 skip directories with file counts under this value --page-length uint16 pagination length for statistics and debug pages @@ -129,7 +129,7 @@ Flags: --stats-file string path to optional persistent stats file -v, --verbose log accessed files to stdout -V, --version display version and exit - --videos enable support for video files + --video enable support for video files ``` ## Building the Docker container diff --git a/cmd/root.go b/cmd/root.go index 3bbd1e9..08878e4 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -84,7 +84,7 @@ func init() { rootCmd.Flags().StringVar(&cacheFile, "cache-file", "", "path to optional persistent cache file") rootCmd.Flags().BoolVarP(&debug, "debug", "d", false, "expose debug endpoint") rootCmd.Flags().BoolVarP(&filtering, "filter", "f", false, "enable filtering") - rootCmd.Flags().BoolVar(&images, "images", true, "enable support for audio files") + rootCmd.Flags().BoolVar(&images, "images", true, "enable support for image files") rootCmd.Flags().Uint32Var(&maximumFileCount, "maximum-files", 1<<32-1, "skip directories with file counts over this value") rootCmd.Flags().Uint32Var(&minimumFileCount, "minimum-files", 0, "skip directories with file counts under this value") rootCmd.Flags().Uint16Var(&pageLength, "page-length", 0, "pagination length for statistics and debug pages") @@ -98,7 +98,7 @@ func init() { rootCmd.Flags().StringVar(&statisticsFile, "stats-file", "", "path to optional persistent stats file") rootCmd.Flags().BoolVarP(&verbose, "verbose", "v", false, "log accessed files to stdout") rootCmd.Flags().BoolVarP(&version, "version", "V", false, "display version and exit") - rootCmd.Flags().BoolVar(&videos, "videos", false, "enable support for video files") + rootCmd.Flags().BoolVar(&videos, "video", false, "enable support for video files") rootCmd.Flags().SetInterspersed(true) diff --git a/cmd/web.go b/cmd/web.go index 317108a..90a44d5 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -1119,7 +1119,7 @@ func ServePage(args []string) error { } if len(paths) == 0 { - return errors.New("no supported files found in provided paths") + return ErrNoMediaFound } if russian {