From fa8357a0bc0524656efde651be07289031abfa06 Mon Sep 17 00:00:00 2001 From: Urban Guacamole Date: Fri, 9 Apr 2021 20:08:48 +0200 Subject: [PATCH] Update crawling intervals --- crawl-rss/main.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crawl-rss/main.go b/crawl-rss/main.go index c2007d2..f9f32b4 100644 --- a/crawl-rss/main.go +++ b/crawl-rss/main.go @@ -35,7 +35,7 @@ func main() { for _, torrent := range torrents { addTorrent(db, torrent, crawled) } - if i%10 == 0 { + if i%5 == 0 { torrents = CrawlTPB48hTop() for _, torrent := range torrents { addTorrent(db, torrent, crawled) @@ -45,7 +45,9 @@ func main() { } } i++ - refresh(db) + if i%3 == 0 { + refresh(db) + } time.Sleep(time.Minute * 100) } }