Add GEDE Comix (#2640)

This commit is contained in:
Vetle Ledaal 2024-04-29 10:23:28 +00:00 committed by Draff
parent 5a7386cd6c
commit 094ef457b0
7 changed files with 44 additions and 0 deletions

View 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"

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 39 KiB

View File

@ -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
}
}