|
|
|
@ -3,7 +3,6 @@ package org.koitharu.kotatsu.parsers.site.zmanga
|
|
|
|
import kotlinx.coroutines.async
|
|
|
|
import kotlinx.coroutines.async
|
|
|
|
import kotlinx.coroutines.coroutineScope
|
|
|
|
import kotlinx.coroutines.coroutineScope
|
|
|
|
import org.jsoup.nodes.Document
|
|
|
|
import org.jsoup.nodes.Document
|
|
|
|
import org.jsoup.nodes.Element
|
|
|
|
|
|
|
|
import org.koitharu.kotatsu.parsers.MangaLoaderContext
|
|
|
|
import org.koitharu.kotatsu.parsers.MangaLoaderContext
|
|
|
|
import org.koitharu.kotatsu.parsers.PagedMangaParser
|
|
|
|
import org.koitharu.kotatsu.parsers.PagedMangaParser
|
|
|
|
import org.koitharu.kotatsu.parsers.config.ConfigKey
|
|
|
|
import org.koitharu.kotatsu.parsers.config.ConfigKey
|
|
|
|
@ -159,8 +158,6 @@ internal abstract class ZMangaParser(
|
|
|
|
|
|
|
|
|
|
|
|
val aut = doc.body().select(selectAut).text()
|
|
|
|
val aut = doc.body().select(selectAut).text()
|
|
|
|
|
|
|
|
|
|
|
|
val nsfw = doc.getElementById("adt-warning") != null
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
manga.copy(
|
|
|
|
manga.copy(
|
|
|
|
tags = doc.body().select(selectTag).mapNotNullToSet { a ->
|
|
|
|
tags = doc.body().select(selectTag).mapNotNullToSet { a ->
|
|
|
|
MangaTag(
|
|
|
|
MangaTag(
|
|
|
|
@ -221,14 +218,6 @@ internal abstract class ZMangaParser(
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected fun Element.src(): String? {
|
|
|
|
|
|
|
|
var result = absUrl("data-src")
|
|
|
|
|
|
|
|
if (result.isEmpty()) result = absUrl("data-cfsrc")
|
|
|
|
|
|
|
|
if (result.isEmpty()) result = absUrl("src")
|
|
|
|
|
|
|
|
return result.ifEmpty { null }
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
protected fun parseChapterDate(dateFormat: DateFormat, date: String?): Long {
|
|
|
|
protected fun parseChapterDate(dateFormat: DateFormat, date: String?): Long {
|
|
|
|
// Clean date (e.g. 5th December 2019 to 5 December 2019) before parsing it
|
|
|
|
// Clean date (e.g. 5th December 2019 to 5 December 2019) before parsing it
|
|
|
|
val d = date?.lowercase() ?: return 0
|
|
|
|
val d = date?.lowercase() ?: return 0
|
|
|
|
|