pimpbunny fixed

This commit is contained in:
Simon
2026-02-15 08:38:37 +00:00
parent b3256a741e
commit 27b87d52d5
3 changed files with 15 additions and 3 deletions

View File

@@ -1,2 +1,3 @@
[build]
rustflags = ["-C", "debuginfo=1"]
rustc-wrapper = "sccache"

View File

@@ -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

View File

@@ -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<VideoItem> = 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![],