From 0138f0b9ef1ec14295607e3a43312cedf00f10eb Mon Sep 17 00:00:00 2001 From: Carlos Date: Sun, 4 Feb 2018 12:22:01 -0500 Subject: [PATCH] MangaPark fixes (#181) * fix issue with low quality covers when searching or browsing * Changed to pull chapters from all versions to prevent missing chapters. Fixed chapter names to show potential title besides chapter number --- src/en/mangapark/build.gradle | 4 ++-- .../tachiyomi/extension/en/mangapark/MangaPark.kt | 10 ++++++---- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/src/en/mangapark/build.gradle b/src/en/mangapark/build.gradle index 658365dce..70b774969 100644 --- a/src/en/mangapark/build.gradle +++ b/src/en/mangapark/build.gradle @@ -5,8 +5,8 @@ ext { appName = 'Tachiyomi: MangaPark' pkgNameSuffix = "en.mangapark" extClass = '.MangaPark' - extVersionCode = 2 - extVersionSuffix = 2 + extVersionCode = 3 + extVersionSuffix = 3 libVersion = '1.0' } diff --git a/src/en/mangapark/src/eu/kanade/tachiyomi/extension/en/mangapark/MangaPark.kt b/src/en/mangapark/src/eu/kanade/tachiyomi/extension/en/mangapark/MangaPark.kt index 7817e82f9..d86e1022c 100644 --- a/src/en/mangapark/src/eu/kanade/tachiyomi/extension/en/mangapark/MangaPark.kt +++ b/src/en/mangapark/src/eu/kanade/tachiyomi/extension/en/mangapark/MangaPark.kt @@ -40,7 +40,6 @@ class MangaPark : ParsedHttpSource() { title = coverElement.attr("title") - thumbnail_url = cleanUrl(coverElement.getElementsByTag("img").attr("src")) } override fun popularMangaFromElement(element: Element) = mangaFromElement(element) @@ -107,14 +106,17 @@ class MangaPark : ParsedHttpSource() { override fun latestUpdatesRequest(page: Int) = GET("$baseUrl$directoryUrl/$page?latest") //TODO MangaPark has "versioning" - //TODO Currently we just use the version that is expanded by default + //TODO Previously we just use the version that is expanded by default however this caused an issue when a manga didnt have an expanded version + //TODO if we just choose one to expand it will cause potential missing chapters + //TODO right now all versions are combined so no chapters are missed //TODO Maybe make it possible for users to view the other versions as well? - override fun chapterListSelector() = ".stream:not(.collapsed) .volume .chapter li" + override fun chapterListSelector() = ".stream .volume .chapter li" + override fun chapterFromElement(element: Element) = SChapter.create().apply { url = element.select("em > a").last().attr("href") - name = element.getElementsByClass("ch").text() + name = element.select("li span").first().text() date_upload = parseDate(element.getElementsByTag("i").text().trim()) }