From 27b87d52d5b36500376320750490b10069acd25e Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 15 Feb 2026 08:38:37 +0000 Subject: [PATCH] pimpbunny fixed --- .cargo/config.toml | 1 + Cargo.toml | 11 +++++++++++ src/providers/pimpbunny.rs | 6 +++--- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index ff3089b..b040753 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,2 +1,3 @@ [build] rustflags = ["-C", "debuginfo=1"] +rustc-wrapper = "sccache" \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 7e659ba..022db2a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,3 +42,14 @@ opt-level = 0 debug = 1 codegen-units = 256 incremental = true + +[profile.release] +# Make release builds faster by trading some peak perf for compile time. +# - opt-level = 2: slightly less optimization than 3 but noticeably faster builds. +# - codegen-units > 1: enables parallel code generation across crates. +# - lto = false: disabling link-time optimization speeds up linking. +# - debug = 0: skip debug info to reduce build work. +opt-level = 3 +codegen-units = 16 +lto = false +debug = 0 diff --git a/src/providers/pimpbunny.rs b/src/providers/pimpbunny.rs index f0b53bc..8c07812 100644 --- a/src/providers/pimpbunny.rs +++ b/src/providers/pimpbunny.rs @@ -252,7 +252,7 @@ impl PimpbunnyProvider { _ => "&sort_by=post_date", }; let video_url = format!( - "{}/videos/{}/?videos_per_page=20{}", + "{}/videos/{}/?videos_per_page=32{}", self.url, page, sort_string ); let old_items = match cache.get(&video_url) { @@ -267,7 +267,7 @@ impl PimpbunnyProvider { vec![] } }; - + println!("pimpbunny: fetching url: {}", video_url); let mut requester = options.requester.clone().unwrap(); let text = requester.get(&video_url, Some(Version::HTTP_11)).await.unwrap(); let video_items: Vec = self @@ -367,7 +367,7 @@ impl PimpbunnyProvider { let block = match html .split("-pagination-wrapper") .next() - .and_then(|s| s.split("video_list").nth(2)) + .and_then(|s| s.split("list_items").nth(1)) { Some(b) => b, None => return vec![],