Add webp support

This commit is contained in:
blankie 2025-01-13 15:57:04 +11:00
parent acea5d26df
commit 9f0afd6ae8
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
3 changed files with 3 additions and 2 deletions

2
Cargo.lock generated
View File

@ -418,7 +418,7 @@ dependencies = [
[[package]]
name = "nhentairs"
version = "0.6.0"
version = "0.6.1"
dependencies = [
"quick-xml",
"reqwest",

View File

@ -1,6 +1,6 @@
[package]
name = "nhentairs"
version = "0.6.0"
version = "0.6.1"
authors = ["blank X <theblankx@protonmail.com>"]
edition = "2018"

View File

@ -55,6 +55,7 @@ pub async fn run(args: env::Args) {
"j" => ".jpg",
"p" => ".png",
"g" => ".gif",
"w" => ".webp",
_ => panic!("Unknown extension type: {}", page.t),
};
let mut file_name = page_num.to_string();