Foolside - add Baixar Hentai (#2099)

Foolside - add Baixar Hentai
This commit is contained in:
Mike 2020-01-19 21:48:06 -05:00 committed by arkon
parent 46c4c3e4a6
commit ab89a1c683
2 changed files with 14 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: FoolSlide (multiple sources)' appName = 'Tachiyomi: FoolSlide (multiple sources)'
pkgNameSuffix = 'all.foolslide' pkgNameSuffix = 'all.foolslide'
extClass = '.FoolSlideFactory' extClass = '.FoolSlideFactory'
extVersionCode = 33 extVersionCode = 34
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -8,6 +8,7 @@ import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory import eu.kanade.tachiyomi.source.SourceFactory
import eu.kanade.tachiyomi.source.model.Page import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SManga import eu.kanade.tachiyomi.source.model.SManga
import eu.kanade.tachiyomi.util.asJsoup
import okhttp3.Request import okhttp3.Request
import org.jsoup.nodes.Document import org.jsoup.nodes.Document
@ -39,7 +40,8 @@ class FoolSlideFactory : SourceFactory {
ZandynoFansub(), ZandynoFansub(),
HelveticaScans(), HelveticaScans(),
KirishimaFansub(), KirishimaFansub(),
PowerMangaIT() PowerMangaIT(),
BaixarHentai()
) )
} }
@ -137,4 +139,13 @@ class KirishimaFansub : FoolSlide("Kirishima Fansub", "https://kirishimafansub.n
class PowerMangaIT : FoolSlide("PowerManga", "http://reader.powermanga.org", "it", "") class PowerMangaIT : FoolSlide("PowerManga", "http://reader.powermanga.org", "it", "")
class BaixarHentai : FoolSlide("Baixar Hentai", "https://leitura.baixarhentai.net", "pt") {
override fun mangaDetailsParse(document: Document): SManga {
return SManga.create().apply {
title = document.select("h1.title").text()
thumbnail_url = document.select("div.thumbnail img").firstOrNull()?.attr("abs:src") ?:
client.newCall(GET(document.select("div.title a").last().attr("abs:href"), headers)).execute().asJsoup()
.let { pageListParse(it).firstOrNull()?.imageUrl }
}
}
}