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
This commit is contained in:
Carlos 2018-02-04 12:22:01 -05:00 committed by inorichi
parent eca0d0039b
commit 0138f0b9ef
2 changed files with 8 additions and 6 deletions

View File

@ -5,8 +5,8 @@ ext {
appName = 'Tachiyomi: MangaPark'
pkgNameSuffix = "en.mangapark"
extClass = '.MangaPark'
extVersionCode = 2
extVersionSuffix = 2
extVersionCode = 3
extVersionSuffix = 3
libVersion = '1.0'
}

View File

@ -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())
}