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

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