aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorAdam Mathes <adam@adammathes.com>2026-02-15 11:13:44 -0800
committerAdam Mathes <adam@adammathes.com>2026-02-15 11:13:44 -0800
commit4c570c223e944a148dc81a4e1ee25d6ab524ae64 (patch)
tree1c04fa170f7abb926b52e97e62e892a61bf09339 /cmd
parentd602f03cd3ef0f5ed6b3591faf520ecd3e1b9fb7 (diff)
downloadneko-4c570c223e944a148dc81a4e1ee25d6ab524ae64.tar.gz
neko-4c570c223e944a148dc81a4e1ee25d6ab524ae64.tar.bz2
neko-4c570c223e944a148dc81a4e1ee25d6ab524ae64.zip
Document background crawler behavior and update default crawl minutes to 60 (or disable with 0)
Diffstat (limited to 'cmd')
-rw-r--r--cmd/neko/main.go6
1 files changed, 3 insertions, 3 deletions
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
}