HiveComic: Use API to fix content not found in getListPage
This commit is contained in:
@@ -192,8 +192,8 @@ internal abstract class IkenParser(
|
|||||||
val key = it.attrOrNull("value") ?: return@mapNotNullToSet null
|
val key = it.attrOrNull("value") ?: return@mapNotNullToSet null
|
||||||
MangaTag(
|
MangaTag(
|
||||||
key = key,
|
key = key,
|
||||||
title = (it.text() ?: key).toTitleCase(sourceLocale),
|
title = it.text().ifBlank { key }.toTitleCase(sourceLocale),
|
||||||
source = source,
|
source = source,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -201,7 +201,7 @@ internal abstract class IkenParser(
|
|||||||
protected fun Document.getNextJson(key: String): String {
|
protected fun Document.getNextJson(key: String): String {
|
||||||
val scripts = select("script")
|
val scripts = select("script")
|
||||||
val scriptData = scripts.find { script ->
|
val scriptData = scripts.find { script ->
|
||||||
script.data()?.contains(key) == true
|
script.data().contains(key)
|
||||||
}?.data() ?: throw Exception("Unable to retrieve NEXT data")
|
}?.data() ?: throw Exception("Unable to retrieve NEXT data")
|
||||||
|
|
||||||
val keyIndex = scriptData.indexOf(key)
|
val keyIndex = scriptData.indexOf(key)
|
||||||
|
|||||||
@@ -9,4 +9,4 @@ import org.koitharu.kotatsu.parsers.Broken
|
|||||||
@Broken("Need to fix getPages")
|
@Broken("Need to fix getPages")
|
||||||
@MangaSourceParser("HIVECOMIC", "HiveComic", "en")
|
@MangaSourceParser("HIVECOMIC", "HiveComic", "en")
|
||||||
internal class HiveComic(context: MangaLoaderContext) :
|
internal class HiveComic(context: MangaLoaderContext) :
|
||||||
IkenParser(context, MangaParserSource.HIVECOMIC, "hivecomic.com", 18)
|
IkenParser(context, MangaParserSource.HIVECOMIC, "hivetoons.org", 18, true)
|
||||||
|
|||||||
@@ -1,10 +1,12 @@
|
|||||||
package org.koitharu.kotatsu.parsers.site.mangareader.en
|
package org.koitharu.kotatsu.parsers.site.mangareader.en
|
||||||
|
|
||||||
|
import org.koitharu.kotatsu.parsers.Broken
|
||||||
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.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
|
||||||
|
|
||||||
|
@Broken("Moved to HiveComic")
|
||||||
@MangaSourceParser("VOIDSCANS", "HiveToon", "en")
|
@MangaSourceParser("VOIDSCANS", "HiveToon", "en")
|
||||||
internal class VoidScans(context: MangaLoaderContext) :
|
internal class VoidScans(context: MangaLoaderContext) :
|
||||||
MangaReaderParser(context, MangaParserSource.VOIDSCANS, "hivetoon.com", pageSize = 15, searchPageSize = 10)
|
MangaReaderParser(context, MangaParserSource.VOIDSCANS, "hivetoon.com", pageSize = 15, searchPageSize = 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user