yesporn fix
This commit is contained in:
@@ -949,10 +949,12 @@ impl YespornProvider {
|
||||
duration,
|
||||
);
|
||||
if let Some(preview) = preview {
|
||||
let mut format =
|
||||
VideoFormat::new(preview.clone(), "preview".to_string(), "video/mp4".to_string());
|
||||
format.add_http_header("Referer".to_string(), item.url.clone());
|
||||
item = item.preview(preview).formats(vec![format]);
|
||||
// let mut format =
|
||||
// VideoFormat::new(preview.clone(), "preview".to_string(), "video/mp4".to_string());
|
||||
// format.add_http_header("Referer".to_string(), item.url.clone());
|
||||
item = item.preview(preview)
|
||||
// .formats(vec![format])
|
||||
;
|
||||
}
|
||||
if let Some(views) = views {
|
||||
item = item.views(views);
|
||||
|
||||
Reference in New Issue
Block a user