Add GEDE Comix (#2640)
This commit is contained in:
parent
5a7386cd6c
commit
094ef457b0
10
src/en/gedecomix/build.gradle
Normal file
10
src/en/gedecomix/build.gradle
Normal file
@ -0,0 +1,10 @@
|
||||
ext {
|
||||
extName = 'GEDE Comix'
|
||||
extClass = '.GEDEComix'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://gedecomix.com'
|
||||
overrideVersionCode = 0
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
BIN
src/en/gedecomix/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
src/en/gedecomix/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 6.8 KiB |
BIN
src/en/gedecomix/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
src/en/gedecomix/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
BIN
src/en/gedecomix/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
src/en/gedecomix/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
BIN
src/en/gedecomix/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
src/en/gedecomix/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
BIN
src/en/gedecomix/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
src/en/gedecomix/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
@ -0,0 +1,34 @@
|
||||
package eu.kanade.tachiyomi.extension.en.gedecomix
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import org.jsoup.nodes.Element
|
||||
|
||||
class GEDEComix : Madara(
|
||||
"GEDE Comix",
|
||||
"https://gedecomix.com",
|
||||
"en",
|
||||
) {
|
||||
override val mangaDetailsSelectorThumbnail = "${super.mangaDetailsSelectorThumbnail}:not([data-eio])"
|
||||
|
||||
override val useNewChapterEndpoint = true
|
||||
|
||||
override val mangaSubString = "porncomic"
|
||||
|
||||
override fun popularMangaFromElement(element: Element): SManga {
|
||||
val manga = super.popularMangaFromElement(element)
|
||||
return fixThumbnail(element, manga)
|
||||
}
|
||||
|
||||
override fun searchMangaFromElement(element: Element): SManga {
|
||||
val manga = super.searchMangaFromElement(element)
|
||||
return fixThumbnail(element, manga)
|
||||
}
|
||||
|
||||
private fun fixThumbnail(element: Element, manga: SManga): SManga {
|
||||
element.selectFirst("img:not([data-eio])")?.also {
|
||||
manga.thumbnail_url = imageFromElement(it)
|
||||
}
|
||||
return manga
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user