From 19d1278828d0a51e7501ed45e45dd28be93c3b6c Mon Sep 17 00:00:00 2001 From: Carlos Date: Sat, 3 Mar 2018 08:14:05 -0500 Subject: [PATCH] mangadex fixes adjusted paging of chapters changed url to .org (#228) --- src/all/mangadex/build.gradle | 4 ++-- .../eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/all/mangadex/build.gradle b/src/all/mangadex/build.gradle index fb3592752..a7e948ac2 100644 --- a/src/all/mangadex/build.gradle +++ b/src/all/mangadex/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: MangaDex' pkgNameSuffix = "all.mangadex" extClass = '.MangadexFactory' - extVersionCode = 9 - extVersionSuffix = 9 + extVersionCode = 10 + extVersionSuffix = 10 libVersion = '1.2' } diff --git a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt index ba68f0c92..84c5f3285 100644 --- a/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt +++ b/src/all/mangadex/src/eu/kanade/tachiyomi/extension/all/mangadex/Mangadex.kt @@ -21,7 +21,7 @@ open class Mangadex(override val lang: String, private val internalLang: String, override val name = "MangaDex" - override val baseUrl = "https://mangadex.com" + override val baseUrl = "https://mangadex.org" override val supportsLatest = true @@ -185,7 +185,7 @@ open class Mangadex(override val lang: String, private val internalLang: String, private fun pagedChapterListRequest(url: String, page: Int): Request { - var pageUrl = url + "/" + ((page * 100)) + var pageUrl = url + "/" + page return GET(pageUrl, headers) } @@ -200,7 +200,7 @@ open class Mangadex(override val lang: String, private val internalLang: String, override fun chapterListParse(response: Response): List { var document = response.asJsoup() val baseUri = baseUrl + document.select("li.paging a").first()?.attr("href")?.substringBeforeLast("/") - var page = 1 + var page = 2 val now = Date().time val chapters = mutableListOf() do {