|
|
|
@ -371,6 +371,30 @@ internal abstract class MangaReaderParser(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@MangaSourceParser("DRAGONTRANSLATION", "DragonTranslation", "es")
|
|
|
|
|
|
|
|
class DragonTranslationParser(override val context: MangaLoaderContext) : MangaReaderParser(MangaSource.DRAGONTRANSLATION, pageSize = 20, searchPageSize = 10) {
|
|
|
|
|
|
|
|
override val configKeyDomain: ConfigKey.Domain
|
|
|
|
|
|
|
|
get() = ConfigKey.Domain("dragontranslation.com", null)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override val listUrl: String get() = "/manga"
|
|
|
|
|
|
|
|
override val tableMode: Boolean get() = false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override val chapterDateFormat: SimpleDateFormat = SimpleDateFormat("MMMM 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,
|
|
|
|
|
|
|
|
description = infoElement?.selectFirst("div.entry-content")?.html(),
|
|
|
|
|
|
|
|
author = infoElement?.selectFirst(".flex-wrap div:contains(Author)")?.lastElementSibling()?.text(),
|
|
|
|
|
|
|
|
tags = infoElement?.select(".wd-full .mgen > a")
|
|
|
|
|
|
|
|
?.mapNotNullToSet { getOrCreateTagMap()[it.text()] }
|
|
|
|
|
|
|
|
.orEmpty(),
|
|
|
|
|
|
|
|
isNsfw = docs.selectFirst(".postbody .alr") != null,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@MangaSourceParser("ASURATR", "Asura Scans (tr)", "tr")
|
|
|
|
@MangaSourceParser("ASURATR", "Asura Scans (tr)", "tr")
|
|
|
|
class AsuraTRParser(override val context: MangaLoaderContext) : MangaReaderParser(MangaSource.ASURATR, pageSize = 30, searchPageSize = 10) {
|
|
|
|
class AsuraTRParser(override val context: MangaLoaderContext) : MangaReaderParser(MangaSource.ASURATR, pageSize = 30, searchPageSize = 10) {
|
|
|
|
override val configKeyDomain: ConfigKey.Domain
|
|
|
|
override val configKeyDomain: ConfigKey.Domain
|
|
|
|
|