change image proxy host

This commit is contained in:
theBreadCompany 2024-09-13 13:37:20 +02:00
parent e8eced61a5
commit c7dc97aa13

View file

@ -50,7 +50,7 @@ async fn create_page(source: &String, html: &String) -> Result<String, Status> {
let illust = json::parse(data_meta.value().attr("content").unwrap()).unwrap(); let illust = json::parse(data_meta.value().attr("content").unwrap()).unwrap();
let image = match illust["illust"].entries().next() { let image = match illust["illust"].entries().next() {
Some (j) => j.1["urls"]["regular"].as_str().unwrap().replace("pximg.net", "thebread.dev"), Some (j) => j.1["urls"]["regular"].as_str().unwrap().replace("pximg.net", "fixiv.net"),
None => "https://http.cat/images/501.jpg".to_string(), None => "https://http.cat/images/501.jpg".to_string(),
}; };