Minor changes
This commit is contained in:
@@ -24,8 +24,8 @@ internal class CatharsisFantasy(context: MangaLoaderContext) :
|
|||||||
override suspend fun getPages(chapter: MangaChapter): List<MangaPage> {
|
override suspend fun getPages(chapter: MangaChapter): List<MangaPage> {
|
||||||
val chapterUrl = chapter.url.toAbsoluteUrl(domain)
|
val chapterUrl = chapter.url.toAbsoluteUrl(domain)
|
||||||
val firstDocs = webClient.httpGet(chapterUrl).parseHtml()
|
val firstDocs = webClient.httpGet(chapterUrl).parseHtml()
|
||||||
val url = firstDocs.selectFirst("iframe")?.src() ?: chapterUrl
|
val urlFinal = firstDocs.selectFirst("iframe")?.src() ?: chapterUrl
|
||||||
val docs = webClient.httpGet(url).parseHtml()
|
val docs = webClient.httpGet(urlFinal).parseHtml()
|
||||||
|
|
||||||
val test = docs.select(selectTestScript)
|
val test = docs.select(selectTestScript)
|
||||||
if (test.isNullOrEmpty() and !encodedSrc) {
|
if (test.isNullOrEmpty() and !encodedSrc) {
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ internal class DocTruyen3Q(context: MangaLoaderContext) :
|
|||||||
val chapterLink = element.selectFirst("a.chapter") ?: return@mapChapters null
|
val chapterLink = element.selectFirst("a.chapter") ?: return@mapChapters null
|
||||||
val href = chapterLink.attrAsAbsoluteUrlOrNull("href") ?: return@mapChapters null
|
val href = chapterLink.attrAsAbsoluteUrlOrNull("href") ?: return@mapChapters null
|
||||||
val name = chapterLink.text()
|
val name = chapterLink.text()
|
||||||
val number = chapterLink.attr("data-chapter")?.toFloatOrNull() ?: 0f
|
val number = chapterLink.attr("data-chapter").toFloatOrNull() ?: 0f
|
||||||
val timeElement = element.select("div.style-chap").firstOrNull()
|
val timeElement = element.select("div.style-chap").firstOrNull()
|
||||||
val timeText = timeElement?.text()
|
val timeText = timeElement?.text()
|
||||||
MangaChapter(
|
MangaChapter(
|
||||||
|
|||||||
@@ -26,12 +26,6 @@ internal class NhatTruyenVN(context: MangaLoaderContext) :
|
|||||||
val href = a.attrAsRelativeUrl("href")
|
val href = a.attrAsRelativeUrl("href")
|
||||||
val chapterNumber = a.text().substringAfter("Chapter ").substringBefore(" ").toFloatOrNull() ?: (i + 1f)
|
val chapterNumber = a.text().substringAfter("Chapter ").substringBefore(" ").toFloatOrNull() ?: (i + 1f)
|
||||||
val dateText = li.selectFirst(selectDate)?.text()
|
val dateText = li.selectFirst(selectDate)?.text()
|
||||||
val findHours = dateText?.contains(":")
|
|
||||||
val dateFormat = if (findHours == true) {
|
|
||||||
SimpleDateFormat("HH:mm dd/MM", sourceLocale)
|
|
||||||
} else {
|
|
||||||
SimpleDateFormat(datePattern, sourceLocale)
|
|
||||||
}
|
|
||||||
MangaChapter(
|
MangaChapter(
|
||||||
id = generateUid(href),
|
id = generateUid(href),
|
||||||
name = a.text(),
|
name = a.text(),
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import org.jsoup.nodes.Document
|
|||||||
import org.koitharu.kotatsu.parsers.MangaLoaderContext
|
import org.koitharu.kotatsu.parsers.MangaLoaderContext
|
||||||
import org.koitharu.kotatsu.parsers.MangaSourceParser
|
import org.koitharu.kotatsu.parsers.MangaSourceParser
|
||||||
import org.koitharu.kotatsu.parsers.site.wpcomics.WpComicsParser
|
import org.koitharu.kotatsu.parsers.site.wpcomics.WpComicsParser
|
||||||
import org.koitharu.kotatsu.parsers.config.ConfigKey
|
|
||||||
import org.koitharu.kotatsu.parsers.model.*
|
import org.koitharu.kotatsu.parsers.model.*
|
||||||
import org.koitharu.kotatsu.parsers.util.*
|
import org.koitharu.kotatsu.parsers.util.*
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
|
|||||||
Reference in New Issue
Block a user