pimpbunny fixed
This commit is contained in:
@@ -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![],
|
||||
|
||||
Reference in New Issue
Block a user