dynamic base url

This commit is contained in:
Simon
2026-03-10 18:45:32 +00:00
parent 2ad131f38f
commit 96926563b8
10 changed files with 118 additions and 43 deletions

View File

@@ -213,9 +213,10 @@ impl HanimeProvider {
drop(conn);
let id = hit.id.to_string();
let title = hit.name;
let thumb = hit.cover_url.replace(
"https://hanime-cdn.com",
"https://hottub.spacemoehre.de/proxy/hanime-cdn",
let thumb = crate::providers::build_proxy_url(
&options,
"hanime-cdn",
&crate::providers::strip_url_scheme(&hit.cover_url),
);
let duration = (hit.duration_in_ms / 1000) as u32; // Convert ms to seconds
let channel = "hanime".to_string(); // Placeholder, adjust as needed