diff --git a/src/main.rs b/src/main.rs index 1fb0448..0e292dc 100644 --- a/src/main.rs +++ b/src/main.rs @@ -163,11 +163,6 @@ async fn async_main() { match utils::get_videos(&rclient, i).await { Ok(videos) => { for j in videos { - { - if tmp_handled.lock().unwrap().contains(&j) { - continue; - } - } if nodl { let mut seen_videos = seen_videos.write().unwrap(); if !seen_videos.contains(&j) { @@ -175,6 +170,9 @@ async fn async_main() { } } else { { + if tmp_handled.lock().unwrap().contains(&j) { + continue; + } let seen_videos = seen_videos.read().unwrap(); if seen_videos.contains(&j) { continue;