From b449a1eaeacc8796c12c0e99157d93aac187a6d4 Mon Sep 17 00:00:00 2001 From: Vesnyx Date: Fri, 4 Jan 2019 17:49:09 -0800 Subject: [PATCH] 3rd time's the charm. (#705) [Meraki] 3rd time's the charm. --- .../tachiyomi/extension/en/merakiscans/MerakiScans.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/en/merakiscans/src/eu/kanade/tachiyomi/extension/en/merakiscans/MerakiScans.kt b/src/en/merakiscans/src/eu/kanade/tachiyomi/extension/en/merakiscans/MerakiScans.kt index 744ab371d..46b2572bf 100644 --- a/src/en/merakiscans/src/eu/kanade/tachiyomi/extension/en/merakiscans/MerakiScans.kt +++ b/src/en/merakiscans/src/eu/kanade/tachiyomi/extension/en/merakiscans/MerakiScans.kt @@ -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 { val doc = document.toString() val imgarray = doc.substringAfter("var images = [").substringBefore("];").split(",").map { it.replace("\"","") }