missav fix
This commit is contained in:
@@ -6,6 +6,7 @@ use crate::status::*;
|
||||
use crate::util::cache::VideoCache;
|
||||
use crate::util::discord::{format_error_chain, send_discord_error_report};
|
||||
use crate::util::requester::Requester;
|
||||
use crate::videos::VideoFormat;
|
||||
use crate::videos::ServerOptions;
|
||||
use crate::videos::VideoItem;
|
||||
use async_trait::async_trait;
|
||||
@@ -422,8 +423,10 @@ impl MissavProvider {
|
||||
})()
|
||||
.ok_or_else(|| ErrorKind::ParsingError(format!("video_url\n{:?}", vid).to_string()))?;
|
||||
|
||||
let video_item =
|
||||
VideoItem::new(id, title, video_url, "missav".to_string(), thumb, duration)
|
||||
let mut format = VideoFormat::new(video_url.clone(), "auto".to_string(), "m3u8".to_string());
|
||||
format.add_http_header("Referer".to_string(), "https://missav.ws/".to_string());
|
||||
let video_item = VideoItem::new(id, title, video_url, "missav".to_string(), thumb, duration)
|
||||
.formats(vec![format])
|
||||
.tags(tags)
|
||||
.preview(format!(
|
||||
"https://fourhoi.com/{}/preview.mp4",
|
||||
|
||||
Reference in New Issue
Block a user