temporarily disabled format
This commit is contained in:
@@ -203,7 +203,7 @@ impl SpankbangProvider {
|
||||
let rate_str = view_and_rating_str[1].split(">").collect::<Vec<&str>>()[1].split("%<").collect::<Vec<&str>>()[0];
|
||||
let rating = rate_str.parse::<f32>().unwrap_or(0.0);
|
||||
let url_part = vid.iter().find(|s| s.contains("<a href=\"/")).unwrap().split("<a href=\"/").collect::<Vec<&str>>()[1].split("\"").collect::<Vec<&str>>()[0];
|
||||
let url = self.url.clone() + url_part.clone();
|
||||
let url = self.url.clone() + url_part;
|
||||
let id = url_part.split("/").collect::<Vec<&str>>()[0].to_string();
|
||||
|
||||
let quality_str = match vid[25].contains("<"){
|
||||
@@ -222,10 +222,10 @@ impl SpankbangProvider {
|
||||
videos::VideoFormat::new(url.clone(), quality.to_string(), "mp4".to_string());
|
||||
format.add_http_header("User-Agent".to_string(), USER_AGENT.to_string());
|
||||
|
||||
let mut video_item = VideoItem::new(id, title, url.clone().to_string(), "spankbang".to_string(), thumb, duration)
|
||||
let video_item = VideoItem::new(id, title, url.clone().to_string(), "spankbang".to_string(), thumb, duration)
|
||||
.views(views)
|
||||
.rating(rating)
|
||||
.formats(vec![format])
|
||||
// .formats(vec![format])
|
||||
.preview(preview);
|
||||
items.push(video_item);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user