From 1a45356fa2680dd9dbb1341db37e34c014348127 Mon Sep 17 00:00:00 2001 From: sentriz Date: Tue, 31 Oct 2023 14:47:30 +0000 Subject: [PATCH] rename exclude pattern var --- cmd/gonic/gonic.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/gonic/gonic.go b/cmd/gonic/gonic.go index d51c34d..fa6eb49 100644 --- a/cmd/gonic/gonic.go +++ b/cmd/gonic/gonic.go @@ -79,7 +79,7 @@ func main() { confShowVersion := set.Bool("version", false, "show gonic version") _ = set.String("config-path", "", "path to config (optional)") - confExcludePatterns := set.String("exclude-pattern", "", "regex pattern to exclude files from scan (optional)") + confExcludePattern := set.String("exclude-pattern", "", "regex pattern to exclude files from scan (optional)") var confMultiValueGenre, confMultiValueAlbumArtist multiValueSetting set.Var(&confMultiValueGenre, "multi-value-genre", "setting for mutli-valued genre scanning (optional)") @@ -89,7 +89,7 @@ func main() { deprecatedConfGenreSplit := set.String("genre-split", "", "(deprecated, see multi-value settings)") - if _, err := regexp.Compile(*confExcludePatterns); err != nil { + if _, err := regexp.Compile(*confExcludePattern); err != nil { log.Fatalf("invalid exclude pattern: %v\n", err) } @@ -187,7 +187,7 @@ func main() { scanner.AlbumArtist: scanner.MultiValueSetting(confMultiValueAlbumArtist), }, tagReader, - *confExcludePatterns, + *confExcludePattern, ) podcast := podcast.New(dbc, *confPodcastPath, tagReader) transcoder := transcode.NewCachingTranscoder(