bugfix
This commit is contained in:
@@ -141,10 +141,6 @@ impl PmvhavenRequest {
|
|||||||
self.hypno = false;
|
self.hypno = false;
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
fn sort(&mut self, sort:String) -> Self {
|
|
||||||
self.activeView = sort;
|
|
||||||
self
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(serde::Serialize)]
|
#[derive(serde::Serialize)]
|
||||||
@@ -199,15 +195,10 @@ impl PmvhavenVideo {
|
|||||||
self._id.clone(),
|
self._id.clone(),
|
||||||
self.title.clone(),
|
self.title.clone(),
|
||||||
format!("https://pmvhaven.com/video/{}_{}", self.title.replace(" ","-"), self._id),
|
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(),
|
"pmvhaven".to_string(),
|
||||||
thumbnail,
|
thumbnail,
|
||||||
self.duration as u32,
|
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);
|
.views(self.views);
|
||||||
item = match self.creator{
|
item = match self.creator{
|
||||||
@@ -258,7 +249,7 @@ impl PmvhavenProvider {
|
|||||||
let index = format!("pmvhaven:{}:{}", page, category);
|
let index = format!("pmvhaven:{}:{}", page, category);
|
||||||
let url = format!("{}/api/getmorevideos", self.url);
|
let url = format!("{}/api/getmorevideos", self.url);
|
||||||
let mut request = PmvhavenRequest::new(page as u32);
|
let mut request = PmvhavenRequest::new(page as u32);
|
||||||
request = request.sort(sort);
|
request.activeView = sort;
|
||||||
println!("Category: {}", category);
|
println!("Category: {}", category);
|
||||||
request = match category.as_str() {
|
request = match category.as_str() {
|
||||||
"hypno" => { request.hypno(); request },
|
"hypno" => { request.hypno(); request },
|
||||||
|
|||||||
Reference in New Issue
Block a user