From 9f0afd6ae896aec6ddc29b243e9f79e953f850b3 Mon Sep 17 00:00:00 2001 From: blankie Date: Mon, 13 Jan 2025 15:57:04 +1100 Subject: [PATCH] Add webp support --- Cargo.lock | 2 +- Cargo.toml | 2 +- src/commands/download.rs | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 272e840..11a7170 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -418,7 +418,7 @@ dependencies = [ [[package]] name = "nhentairs" -version = "0.6.0" +version = "0.6.1" dependencies = [ "quick-xml", "reqwest", diff --git a/Cargo.toml b/Cargo.toml index 4986230..e6eb13d 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nhentairs" -version = "0.6.0" +version = "0.6.1" authors = ["blank X "] edition = "2018" diff --git a/src/commands/download.rs b/src/commands/download.rs index f85eed4..c43f496 100644 --- a/src/commands/download.rs +++ b/src/commands/download.rs @@ -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();