From 4c570c223e944a148dc81a4e1ee25d6ab524ae64 Mon Sep 17 00:00:00 2001 From: Adam Mathes Date: Sun, 15 Feb 2026 11:13:44 -0800 Subject: Document background crawler behavior and update default crawl minutes to 60 (or disable with 0) --- cmd/neko/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cmd') diff --git a/cmd/neko/main.go b/cmd/neko/main.go index cc724df..68bc971 100644 --- a/cmd/neko/main.go +++ b/cmd/neko/main.go @@ -63,8 +63,8 @@ func Run(args []string) error { f.IntVar(&port, "http", 0, "HTTP port to serve on") f.IntVar(&port, "s", 0, "HTTP port to serve on (short)") - f.IntVar(&minutes, "minutes", 0, "minutes between crawling feeds") - f.IntVar(&minutes, "m", 0, "minutes between crawling feeds (short)") + f.IntVar(&minutes, "minutes", -1, "minutes between crawling feeds") + f.IntVar(&minutes, "m", -1, "minutes between crawling feeds (short)") f.BoolVar(&proxyImages, "imageproxy", false, "rewrite and proxy all image requests") f.BoolVar(&proxyImages, "i", false, "rewrite and proxy all image requests (short)") @@ -117,7 +117,7 @@ func Run(args []string) error { config.Config.DigestPassword = password } - if minutes != 0 { + if minutes != -1 { config.Config.CrawlMinutes = minutes } -- cgit v1.2.3