3rd time's the charm. (#705)

[Meraki] 3rd time's the charm.
This commit is contained in:
Vesnyx 2019-01-04 17:49:09 -08:00 committed by Carlos
parent fd29e2a7c7
commit b449a1eaea
1 changed files with 8 additions and 1 deletions

View File

@ -30,10 +30,17 @@ class MerakiScans : ParsedHttpSource() {
}
}
override fun popularMangaSelector() = "#all > #listitem > a"
override fun latestUpdatesSelector() = "#mangalisthome > #mangalistitem > #mangaitem > #manganame > a"
override fun popularMangaRequest(page: Int)
= GET("$baseUrl/manga", headers)
override fun latestUpdatesRequest(page: Int)
= GET("$baseUrl", headers)
override fun popularMangaFromElement(element: Element) = SManga.create().apply {
setUrlWithoutDomain(element.attr("href"))
title = element.select("h1.title").text().trim()
@ -127,7 +134,7 @@ class MerakiScans : ParsedHttpSource() {
0L
}
}
override fun pageListParse(document: Document): List<Page> {
val doc = document.toString()
val imgarray = doc.substringAfter("var images = [").substringBefore("];").split(",").map { it.replace("\"","") }