From dbc1f3cffcb82adfe9103cd62de5fa0507205b3b Mon Sep 17 00:00:00 2001 From: kannibalox Date: Fri, 30 Jun 2023 08:48:37 -0400 Subject: [PATCH] Make comments and values match --- Auto-Scraping.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Auto-Scraping.md b/Auto-Scraping.md index 917d724..711c3fe 100644 --- a/Auto-Scraping.md +++ b/Auto-Scraping.md @@ -29,6 +29,7 @@ Let's try to balance the requests to not fire up them at the same time: - send scrape requests regularly, check for update in every `5 minutes` and distinguish between 2 groups: - transferring (uploading/downloading) torrents : update it in every `10 minutes` - non-transferring torrents: update it in every `12 hours` + - stopped torrents: update it in every `24 hours` ### Config @@ -38,15 +39,16 @@ All you have to do is to copy-paste the following config into your `rTorrent` co ### Tracker Announce ### # Set scrape intervals for active (~10 mins), idle items (~12 hours) and stopped items (~24 hours) -method.insert = cfg.scrape_interval.active, value, 300 -method.insert = cfg.scrape_interval.idle, value, 43180 -method.insert = cfg.scrape_interval.stopped, value, 86380 +method.insert = cfg.scrape_interval.active, value, 600 +method.insert = cfg.scrape_interval.idle, value, 43200 +method.insert = cfg.scrape_interval.stopped, value, 86400 # Regularly update scrape information for all torrents (even stopped ones), it won't affect the operation of rtorrent, but nice to have these values updated. # This info is only updated when rtorrent starts or a torrent is added by default. # Try to balance calls to not fire them up at the same time (since multiscraping isn't implemented in libtorrent). Check for update every 5 minutes and distinguish between 2 groups: # - transferring (uploading and/or downloading) torrents: update in every 10 minutes # - non-transferring torrents: update in every 12 hours +# - stopped torrents: update it in every `24 hours` # helper method: sets current time in a custom field (tm_last_scrape) and saves session method.insert = d.last_scrape.set, simple|private, "d.custom.set=tm_last_scrape,$cat=$system.time=; d.save_resume=" @@ -67,7 +69,7 @@ method.set_key = event.download.inserted_new, ~last_scrape_i, "d.last_scrape.set method.insert = d.last_scrape.update_active, simple|private, "branch={\"or={d.up.rate=,d.down.rate=}\",d.last_scrape.check=$cfg.scrape_interval.active=,d.last_scrape.check=$cfg.scrape_interval.idle=}" method.insert = d.last_scrape.update, simple|private, "branch={d.is_open=,d.last_scrape.update_active=,d.last_scrape.check=$cfg.scrape_interval.stopped=}" -# check for update every 2 minutes (120 sec) and +# check for update every 5 minutes (300 sec) and schedule2 = last_scrape_t, 300, 300, "d.multicall2=default,\"d.last_scrape.update=\"" ```