From cc71ae4155327819693d9d79e53f5945dc28d619 Mon Sep 17 00:00:00 2001 From: theBreadCompany Date: Thu, 26 Sep 2024 05:32:26 +0200 Subject: [PATCH] forgor to change image url host --- fxpixiv/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fxpixiv/src/main.rs b/fxpixiv/src/main.rs index 86949f7..ef7a88f 100644 --- a/fxpixiv/src/main.rs +++ b/fxpixiv/src/main.rs @@ -30,7 +30,7 @@ async fn fetch_illust(client: &Option, illust_id: u32) -> Option if let Ok(illust) = client.illust_details(illust_id).await { let image = if illust.page_count == 1 { illust.meta_single_page.unwrap().original_image_url.unwrap() } else { illust.meta_pages[0].image_urls.large.clone() }; return Some(Metadata { - image: image, + image: image.as_str().replace("pximg.net", "fixiv.net"), title: illust.title, desc: illust.caption, })