bugfixes
This commit is contained in:
@@ -39,7 +39,7 @@ impl Porn00Provider {
|
||||
let sort_string = match sort {
|
||||
"popular" => "/popular-vids",
|
||||
"top-rated" => "/top-vids",
|
||||
_ => "/latest-vids/",
|
||||
_ => "/latest-vids",
|
||||
};
|
||||
|
||||
let list_str = match sort {
|
||||
@@ -83,7 +83,7 @@ impl Porn00Provider {
|
||||
query: &str,
|
||||
) -> Result<Vec<VideoItem>> {
|
||||
let search_string = query.to_lowercase().trim().replace(" ", "-");
|
||||
let video_url = format!("{}/search/{}/?mode=async&function=get_block&block_id=list_videos_videos_list_search_result&q=a&category_ids=&sort_by=&from_videos={}&from_albums={}&", self.url, search_string, page, page);
|
||||
let video_url = format!("{}/search/{}?mode=async&function=get_block&block_id=list_videos_videos_list_search_result&q=a&category_ids=&sort_by=&from_videos={}&from_albums={}&", self.url, search_string, page, page);
|
||||
// Check our Video Cache. If the result is younger than 1 hour, we return it.
|
||||
let old_items = match cache.get(&video_url) {
|
||||
Some((time, items)) => {
|
||||
|
||||
Reference in New Issue
Block a user