spankbang now working with DB

This commit is contained in:
Simon
2025-07-13 10:14:42 +00:00
parent 9cf532e831
commit 3f391a4516
2 changed files with 61 additions and 20 deletions

View File

@@ -345,6 +345,11 @@ async fn videos_post(
let per_page_clone = perPage.to_string();
let featured_clone = featured.clone();
task::spawn_local(async move {
if let AnyProvider::Spankbang(_) = provider_clone {
// Spankbang has a delay for the next page
let delay = time::Duration::from_secs(60);
time::sleep(delay).await;
}
let _ = provider_clone
.get_videos(
cache_clone,