overhault to fix warnings etc
This commit is contained in:
@@ -8,6 +8,7 @@ use error_chain::error_chain;
|
||||
use futures::future::join_all;
|
||||
use htmlentity::entity::{ICodedDataTrait, decode};
|
||||
use std::vec;
|
||||
use async_trait::async_trait;
|
||||
|
||||
error_chain! {
|
||||
foreign_links {
|
||||
@@ -173,7 +174,7 @@ impl ParadisehillProvider {
|
||||
.to_string();
|
||||
let format =
|
||||
videos::VideoFormat::new(video_url.clone(), "1080".to_string(), "mp4".to_string())
|
||||
.protocol("https".to_string())
|
||||
// .protocol("https".to_string())
|
||||
.format_id(video_url.split("/").last().unwrap().to_string())
|
||||
.format_note(format!("{}", video_url.split("_").last().unwrap().replace(".mp4", "").to_string()))
|
||||
;
|
||||
@@ -203,6 +204,7 @@ impl ParadisehillProvider {
|
||||
}
|
||||
}
|
||||
|
||||
#[async_trait]
|
||||
impl Provider for ParadisehillProvider {
|
||||
async fn get_videos(
|
||||
&self,
|
||||
|
||||
Reference in New Issue
Block a user