change image proxy host
This commit is contained in:
parent
e8eced61a5
commit
c7dc97aa13
1 changed files with 1 additions and 1 deletions
|
@ -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(),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue