parent
a2b8ecbc12
commit
0765cd7f3d
10
src/id/comic21/build.gradle
Normal file
10
src/id/comic21/build.gradle
Normal 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"
|
BIN
src/id/comic21/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
src/id/comic21/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.4 KiB |
BIN
src/id/comic21/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
src/id/comic21/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.3 KiB |
BIN
src/id/comic21/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
src/id/comic21/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 10 KiB |
BIN
src/id/comic21/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
src/id/comic21/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 22 KiB |
BIN
src/id/comic21/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
src/id/comic21/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 37 KiB |
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user