Add: KomikLokal
This commit is contained in:
@@ -514,6 +514,30 @@ internal abstract class MangaReaderParser(
|
||||
}
|
||||
}
|
||||
|
||||
@MangaSourceParser("KOMIKLOKAL", "KomikLokal", "id")
|
||||
class CosmicScansParser(context: MangaLoaderContext) :
|
||||
KomikLokalParser(context, MangaSource.KOMIKLOKAL, pageSize = 20, searchPageSize = 10) {
|
||||
override val configKeyDomain: ConfigKey.Domain
|
||||
get() = ConfigKey.Domain("komiklokal.pics", null)
|
||||
|
||||
override val listUrl: String
|
||||
get() = "/manga"
|
||||
override val tableMode: Boolean
|
||||
get() = false
|
||||
|
||||
override val chapterDateFormat: SimpleDateFormat = SimpleDateFormat("MMM d, yyyy", Locale.ENGLISH)
|
||||
|
||||
override suspend fun parseInfoList(docs: Document, manga: Manga, chapters: List<MangaChapter>): Manga {
|
||||
val infoElement = docs.selectFirst("div.infox")
|
||||
return manga.copy(
|
||||
chapters = chapters,
|
||||
tags = infoElement?.select(".wd-full .mgen > a")
|
||||
?.mapNotNullToSet { getOrCreateTagMap()[it.text()] }
|
||||
.orEmpty(),
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
@MangaSourceParser("KOMIKAV", "KomiKav", "id")
|
||||
class KomiKavParser(context: MangaLoaderContext) :
|
||||
MangaReaderParser(context, MangaSource.KOMIKAV, pageSize = 20, searchPageSize = 10) {
|
||||
|
||||
Reference in New Issue
Block a user