Add webp support
This commit is contained in:
parent
acea5d26df
commit
9f0afd6ae8
|
@ -418,7 +418,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "nhentairs"
|
name = "nhentairs"
|
||||||
version = "0.6.0"
|
version = "0.6.1"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"quick-xml",
|
"quick-xml",
|
||||||
"reqwest",
|
"reqwest",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "nhentairs"
|
name = "nhentairs"
|
||||||
version = "0.6.0"
|
version = "0.6.1"
|
||||||
authors = ["blank X <theblankx@protonmail.com>"]
|
authors = ["blank X <theblankx@protonmail.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
|
|
@ -55,6 +55,7 @@ pub async fn run(args: env::Args) {
|
||||||
"j" => ".jpg",
|
"j" => ".jpg",
|
||||||
"p" => ".png",
|
"p" => ".png",
|
||||||
"g" => ".gif",
|
"g" => ".gif",
|
||||||
|
"w" => ".webp",
|
||||||
_ => panic!("Unknown extension type: {}", page.t),
|
_ => panic!("Unknown extension type: {}", page.t),
|
||||||
};
|
};
|
||||||
let mut file_name = page_num.to_string();
|
let mut file_name = page_num.to_string();
|
||||||
|
|
Loading…
Reference in New Issue