From 6dd63ae6205ea6bc6193874df932dd9f71f82ae2 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 19 Aug 2025 10:53:38 +0000 Subject: [PATCH] bugfixes --- Cargo.toml | 1 - src/providers/hentaimoon.rs | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index b91eccf..cf5e710 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,4 +20,3 @@ wreq = { version = "5", features = ["full"] } wreq-util = "2" percent-encoding = "2.1" capitalize = "0.3.4" -md5 = "0.8.0" diff --git a/src/providers/hentaimoon.rs b/src/providers/hentaimoon.rs index 7e6867a..2b504d6 100644 --- a/src/providers/hentaimoon.rs +++ b/src/providers/hentaimoon.rs @@ -13,7 +13,6 @@ use std::env; use std::vec; use wreq::{Client, Proxy}; use wreq_util::Emulation; -use md5; error_chain! { foreign_links { @@ -213,7 +212,7 @@ impl HentaimoonProvider { .to_string(); // html decode title = decode(title.as_bytes()).to_string().unwrap_or(title); - let id = format!("{:x}", md5::compute(title.clone())); + let id = video_url.split("/").collect::>()[4].to_string(); let raw_duration = video_segment.split("
").collect::>()[1] .split("<") .collect::>()[0]