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]] [[package]]
name = "nhentairs" name = "nhentairs"
version = "0.6.0" version = "0.6.1"
dependencies = [ dependencies = [
"quick-xml", "quick-xml",
"reqwest", "reqwest",

View File

@ -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"

View File

@ -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();