dynamic base url
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user