diff --git a/lib-multisrc/kemono/build.gradle.kts b/lib-multisrc/kemono/build.gradle.kts index 8047e9e33..7813c7ee1 100644 --- a/lib-multisrc/kemono/build.gradle.kts +++ b/lib-multisrc/kemono/build.gradle.kts @@ -2,4 +2,4 @@ plugins { id("lib-multisrc") } -baseVersionCode = 10 +baseVersionCode = 11 diff --git a/lib-multisrc/kemono/src/eu/kanade/tachiyomi/multisrc/kemono/KemonoDto.kt b/lib-multisrc/kemono/src/eu/kanade/tachiyomi/multisrc/kemono/KemonoDto.kt index 75d0d7762..cb86ce396 100644 --- a/lib-multisrc/kemono/src/eu/kanade/tachiyomi/multisrc/kemono/KemonoDto.kt +++ b/lib-multisrc/kemono/src/eu/kanade/tachiyomi/multisrc/kemono/KemonoDto.kt @@ -60,7 +60,7 @@ class KemonoPostDto( if (file.path != null) add(KemonoAttachmentDto(file.name!!, file.path)) addAll(attachments) }.filter { - when (it.name.substringAfterLast('.').lowercase()) { + when (it.path.substringAfterLast('.').lowercase()) { "png", "jpg", "gif", "jpeg", "webp" -> true else -> false } @@ -91,6 +91,7 @@ class KemonoPostDto( @Serializable class KemonoFileDto(val name: String? = null, val path: String? = null) +// name might have ".jpe" extension for JPEG, path might have ".m4v" extension for MP4 @Serializable class KemonoAttachmentDto(val name: String, val path: String) { override fun toString() = "$path?f=$name"