Add Comic 21 (#3721)

* Add Comic 21

* actually set `isNsfw`
This commit is contained in:
Vetle Ledaal 2024-06-24 17:08:06 +02:00 committed by Draff
parent a2b8ecbc12
commit 0765cd7f3d
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
7 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,10 @@
ext {
extName = 'Comic 21'
extClass = '.Comic21'
themePkg = 'mangathemesia'
baseUrl = 'https://comic21.me'
overrideVersionCode = 0
isNsfw = false
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

View File

@ -0,0 +1,29 @@
package eu.kanade.tachiyomi.extension.id.comic21
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.source.model.SManga
import org.jsoup.nodes.Document
class Comic21 : MangaThemesia(
"Comic 21",
"https://comic21.me",
"id",
) {
override val hasProjectPage = true
override fun mangaDetailsParse(document: Document): SManga {
return super.mangaDetailsParse(document).apply {
// Add 'color' badge as a genre
if (document.selectFirst(".thumb .colored") != null) {
val genres = genre
?.split(", ")
?.toMutableList()
?: mutableListOf()
genre = genres
.apply { add("Color") }
.joinToString()
}
}
}
}