|
|
|
@ -4,10 +4,26 @@ import org.koitharu.kotatsu.parsers.MangaLoaderContext
|
|
|
|
import org.koitharu.kotatsu.parsers.MangaSourceParser
|
|
|
|
import org.koitharu.kotatsu.parsers.MangaSourceParser
|
|
|
|
import org.koitharu.kotatsu.parsers.model.MangaParserSource
|
|
|
|
import org.koitharu.kotatsu.parsers.model.MangaParserSource
|
|
|
|
import org.koitharu.kotatsu.parsers.site.mangareader.MangaReaderParser
|
|
|
|
import org.koitharu.kotatsu.parsers.site.mangareader.MangaReaderParser
|
|
|
|
|
|
|
|
import org.koitharu.kotatsu.parsers.model.*
|
|
|
|
|
|
|
|
import org.koitharu.kotatsu.parsers.util.*
|
|
|
|
|
|
|
|
|
|
|
|
@MangaSourceParser("MANHWAINDO", "ManhwaIndo", "id")
|
|
|
|
@MangaSourceParser("MANHWAINDO", "ManhwaIndo", "id")
|
|
|
|
internal class ManhwaIndoParser(context: MangaLoaderContext) :
|
|
|
|
internal class ManhwaIndoParser(context: MangaLoaderContext) :
|
|
|
|
MangaReaderParser(context, MangaParserSource.MANHWAINDO, "manhwaindo.one", pageSize = 30, searchPageSize = 10) {
|
|
|
|
MangaReaderParser(context, MangaParserSource.MANHWAINDO, "manhwaindo.one", pageSize = 30, searchPageSize = 10) {
|
|
|
|
override val datePattern = "MMM d, yyyy"
|
|
|
|
override val datePattern = "MMM d, yyyy"
|
|
|
|
override val listUrl = "/series"
|
|
|
|
override val listUrl = "/series"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override suspend fun getPages(chapter: MangaChapter): List<MangaPage> {
|
|
|
|
|
|
|
|
val chapterUrl = chapter.url.toAbsoluteUrl(domain)
|
|
|
|
|
|
|
|
val docs = webClient.httpGet(chapterUrl).parseHtml()
|
|
|
|
|
|
|
|
return docs.select(selectPage).map { img ->
|
|
|
|
|
|
|
|
val url = img.attr("data-src").toRelativeUrl(domain)
|
|
|
|
|
|
|
|
MangaPage(
|
|
|
|
|
|
|
|
id = generateUid(url),
|
|
|
|
|
|
|
|
url = url,
|
|
|
|
|
|
|
|
preview = null,
|
|
|
|
|
|
|
|
source = source,
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|