[Add] WPMangaStream - SekteKomik (#1677)

[Add] WPMangaStream - SekteKomik
This commit is contained in:
happywillow0 2019-10-20 10:28:22 -04:00 committed by arkon
parent e9336cfbf8
commit 8ee25c471b
3 changed files with 7 additions and 5 deletions

View File

@ -5,7 +5,7 @@ ext {
appName = 'Tachiyomi: WP Manga Stream' appName = 'Tachiyomi: WP Manga Stream'
pkgNameSuffix = 'all.wpmangastream' pkgNameSuffix = 'all.wpmangastream'
extClass = '.WPMangaStreamFactory' extClass = '.WPMangaStreamFactory'
extVersionCode = 1 extVersionCode = 2
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -133,10 +133,10 @@ abstract class WPMangaStream(override val name: String, override val baseUrl: St
override fun mangaDetailsParse(document: Document): SManga { override fun mangaDetailsParse(document: Document): SManga {
val infoElement = document.select("div.spe").first() val infoElement = document.select("div.spe").first()
val descElement = document.select(".infox > div.desc").first() val descElement = document.select(".infox > div.desc").first()
val sepName = infoElement.select(".spe > span:nth-child(3)").last() val sepName = infoElement.select(".spe > span:contains(Author)").last()
val manga = SManga.create() val manga = SManga.create()
manga.author = sepName.ownText() manga.author = sepName?.ownText() ?:"N/A"
manga.artist = sepName.ownText() manga.artist = sepName?.ownText() ?:"N/A"
val genres = mutableListOf<String>() val genres = mutableListOf<String>()
infoElement.select(".spe > span:nth-child(1) > a").forEach { element -> infoElement.select(".spe > span:nth-child(1) > a").forEach { element ->
val genre = element.text() val genre = element.text()

View File

@ -25,10 +25,12 @@ class WPMangaStreamFactory : SourceFactory {
WestManga(), WestManga(),
KomikGo(), KomikGo(),
KomikIndo(), KomikIndo(),
MaidManga() MaidManga(),
SekteKomik()
) )
} }
class SekteKomik() : WPMangaStream("Sekte Komik (WP Manga Stream)", "https://sektekomik.com", "id")
class Kiryuu : WPMangaStream("Kiryuu (WP Manga Stream)", "https://kiryuu.co", "id") class Kiryuu : WPMangaStream("Kiryuu (WP Manga Stream)", "https://kiryuu.co", "id")
class KomikAV : WPMangaStream("Komik AV (WP Manga Stream)", "https://komikav.com", "id") class KomikAV : WPMangaStream("Komik AV (WP Manga Stream)", "https://komikav.com", "id")
class KomikStation : WPMangaStream("Komik Station (WP Manga Stream)", "https://komikstation.com", "id") class KomikStation : WPMangaStream("Komik Station (WP Manga Stream)", "https://komikstation.com", "id")