adapted pmvhaven

This commit is contained in:
Simon
2025-07-20 05:14:59 +00:00
parent 5f084970d2
commit 323fbfd5c9
2 changed files with 82 additions and 82 deletions

View File

@@ -200,10 +200,10 @@ impl PmvhavenVideo {
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())
])
//.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{