bugfixes
This commit is contained in:
@@ -20,4 +20,3 @@ wreq = { version = "5", features = ["full"] }
|
|||||||
wreq-util = "2"
|
wreq-util = "2"
|
||||||
percent-encoding = "2.1"
|
percent-encoding = "2.1"
|
||||||
capitalize = "0.3.4"
|
capitalize = "0.3.4"
|
||||||
md5 = "0.8.0"
|
|
||||||
|
|||||||
@@ -13,7 +13,6 @@ use std::env;
|
|||||||
use std::vec;
|
use std::vec;
|
||||||
use wreq::{Client, Proxy};
|
use wreq::{Client, Proxy};
|
||||||
use wreq_util::Emulation;
|
use wreq_util::Emulation;
|
||||||
use md5;
|
|
||||||
|
|
||||||
error_chain! {
|
error_chain! {
|
||||||
foreign_links {
|
foreign_links {
|
||||||
@@ -213,7 +212,7 @@ impl HentaimoonProvider {
|
|||||||
.to_string();
|
.to_string();
|
||||||
// html decode
|
// html decode
|
||||||
title = decode(title.as_bytes()).to_string().unwrap_or(title);
|
title = decode(title.as_bytes()).to_string().unwrap_or(title);
|
||||||
let id = format!("{:x}", md5::compute(title.clone()));
|
let id = video_url.split("/").collect::<Vec<&str>>()[4].to_string();
|
||||||
let raw_duration = video_segment.split("<div class=\"duration\">").collect::<Vec<&str>>()[1]
|
let raw_duration = video_segment.split("<div class=\"duration\">").collect::<Vec<&str>>()[1]
|
||||||
.split("<")
|
.split("<")
|
||||||
.collect::<Vec<&str>>()[0]
|
.collect::<Vec<&str>>()[0]
|
||||||
|
|||||||
Reference in New Issue
Block a user