From dac319df70ebc3d8e7deb97186cd99044589cb03 Mon Sep 17 00:00:00 2001 From: KenjieDec <65448230+KenjieDec@users.noreply.github.com> Date: Sat, 30 Nov 2024 21:00:10 +0700 Subject: [PATCH] Add support for .webp image extension --- .../kotlin/exh/metadata/metadata/NHentaiSearchMetadata.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/source-api/src/commonMain/kotlin/exh/metadata/metadata/NHentaiSearchMetadata.kt b/source-api/src/commonMain/kotlin/exh/metadata/metadata/NHentaiSearchMetadata.kt index 6e4949e9f17a..1ef453f572f4 100644 --- a/source-api/src/commonMain/kotlin/exh/metadata/metadata/NHentaiSearchMetadata.kt +++ b/source-api/src/commonMain/kotlin/exh/metadata/metadata/NHentaiSearchMetadata.kt @@ -130,6 +130,7 @@ class NHentaiSearchMetadata : RaisedSearchMetadata() { fun typeToExtension(t: String?) = when (t) { + "w" -> "webp" "p" -> "png" "j" -> "jpg" "g" -> "gif"