Add grab_enabled kill switch for the passive RSS grab loop
This commit is contained in:
parent
e179b9bf90
commit
691fb39cbb
2 changed files with 14 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue