From 22b75eb2287eb9e52fcfcfdda1ae1a261d8384c6 Mon Sep 17 00:00:00 2001 From: axiel7 Date: Sun, 17 Nov 2024 16:57:46 +0100 Subject: [PATCH] fix(nhentai): webp images --- src/rust/multi.nhentai/res/source.json | 2 +- src/rust/multi.nhentai/src/helper.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rust/multi.nhentai/res/source.json b/src/rust/multi.nhentai/res/source.json index 41475c462..fd0b5dc56 100644 --- a/src/rust/multi.nhentai/res/source.json +++ b/src/rust/multi.nhentai/res/source.json @@ -3,7 +3,7 @@ "id": "multi.nhentai", "lang": "multi", "name": "NHentai", - "version": 6, + "version": 7, "url": "https://nhentai.net/", "nsfw": 2 }, diff --git a/src/rust/multi.nhentai/src/helper.rs b/src/rust/multi.nhentai/src/helper.rs index 4a2756f52..beec7228f 100644 --- a/src/rust/multi.nhentai/src/helper.rs +++ b/src/rust/multi.nhentai/src/helper.rs @@ -59,6 +59,7 @@ pub fn get_file_type(filetype: String) -> String { return match filetype.as_str() { "j" => String::from("jpg"), "p" => String::from("png"), + "w" => String::from("webp"), "g" => String::from("gif"), _ => String::new(), };