Add grab_enabled kill switch for the passive RSS grab loop

This commit is contained in:
Breadway 2026-07-24 23:20:43 +08:00
parent e179b9bf90
commit 691fb39cbb
2 changed files with 14 additions and 0 deletions

View file

@ -378,6 +378,9 @@ async fn background_loop(
loop {
tokio::select! {
_ = grab_ticker.tick() => {
if !config.sources.grab_enabled {
continue;
}
let result = {
let conn = conn.lock().await;
scheduler::run_grab_cycle(&conn, &nyaa_source, 1, &mut title_matcher, &qbit, &config.qbit.category).await