diff --git a/src/providers/pmvhaven.rs b/src/providers/pmvhaven.rs index fa6d235..df382b8 100644 --- a/src/providers/pmvhaven.rs +++ b/src/providers/pmvhaven.rs @@ -141,10 +141,6 @@ impl PmvhavenRequest { self.hypno = false; self } - fn sort(&mut self, sort:String) -> Self { - self.activeView = sort; - self - } } #[derive(serde::Serialize)] @@ -199,15 +195,10 @@ impl PmvhavenVideo { self._id.clone(), self.title.clone(), format!("https://pmvhaven.com/video/{}_{}", self.title.replace(" ","-"), self._id), - // format!("https://storage.pmvhaven.com/{}/{}_{}.mp4", self._id.clone(), self.title.replace(" ","-"), self._id), "pmvhaven".to_string(), thumbnail, 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/{}/264_{}.mp4", video_id, video_id), "1080".to_string(), "mp4".to_string()).protocol("https".to_string()) - //]) .views(self.views); item = match self.creator{ @@ -258,7 +249,7 @@ impl PmvhavenProvider { let index = format!("pmvhaven:{}:{}", page, category); let url = format!("{}/api/getmorevideos", self.url); let mut request = PmvhavenRequest::new(page as u32); - request = request.sort(sort); + request.activeView = sort; println!("Category: {}", category); request = match category.as_str() { "hypno" => { request.hypno(); request },