From eafd557d09a7f40a886c6e59e9d1003a264791ef Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 19 Jul 2025 08:10:55 +0000 Subject: [PATCH] bugfixes --- src/providers/pmvhaven.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/providers/pmvhaven.rs b/src/providers/pmvhaven.rs index e0c03f3..bf5416a 100644 --- a/src/providers/pmvhaven.rs +++ b/src/providers/pmvhaven.rs @@ -201,7 +201,7 @@ impl PmvhavenVideo { self.duration as u32, ) .formats(vec![ - VideoFormat::new(format!("https://storage.pmvhaven.com/{}/{}_{}.mp4", video_id, encoded_title, video_id), "1080".to_string(), "mp4".to_string()).protocol("https".to_string()), + // VideoFormat::new(format!("https://storage.pmvhaven.com/{}/{}_{}.mp4", video_id, encoded_title, video_id), "1080".to_string(), "mp4".to_string()).protocol("https".to_string()), VideoFormat::new(format!("https://storage.pmvhaven.com/{}/264_{}.mp4", video_id, video_id), "1080".to_string(), "mp4".to_string()).protocol("https".to_string()) ]) @@ -344,7 +344,7 @@ impl PmvhavenProvider { let url = format!("{}/api/v2/search", self.url); let request = PmvhavenSearch::new(query.to_string(),page as u32); // Check our Video Cache. If the result is younger than 1 hour, we return it. - let old_items = match cache.get(&url) { + let old_items = match cache.get(&index) { Some((time, items)) => { if time.elapsed().unwrap_or_default().as_secs() < 60 * 5 { return Ok(items.clone());