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:
parent
eca0d0039b
commit
0138f0b9ef
|
@ -5,8 +5,8 @@ ext {
|
||||||
appName = 'Tachiyomi: MangaPark'
|
appName = 'Tachiyomi: MangaPark'
|
||||||
pkgNameSuffix = "en.mangapark"
|
pkgNameSuffix = "en.mangapark"
|
||||||
extClass = '.MangaPark'
|
extClass = '.MangaPark'
|
||||||
extVersionCode = 2
|
extVersionCode = 3
|
||||||
extVersionSuffix = 2
|
extVersionSuffix = 3
|
||||||
libVersion = '1.0'
|
libVersion = '1.0'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,6 @@ class MangaPark : ParsedHttpSource() {
|
||||||
|
|
||||||
title = coverElement.attr("title")
|
title = coverElement.attr("title")
|
||||||
|
|
||||||
thumbnail_url = cleanUrl(coverElement.getElementsByTag("img").attr("src"))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun popularMangaFromElement(element: Element) = mangaFromElement(element)
|
override fun popularMangaFromElement(element: Element) = mangaFromElement(element)
|
||||||
|
@ -107,14 +106,17 @@ class MangaPark : ParsedHttpSource() {
|
||||||
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl$directoryUrl/$page?latest")
|
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl$directoryUrl/$page?latest")
|
||||||
|
|
||||||
//TODO MangaPark has "versioning"
|
//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?
|
//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 {
|
override fun chapterFromElement(element: Element) = SChapter.create().apply {
|
||||||
url = element.select("em > a").last().attr("href")
|
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())
|
date_upload = parseDate(element.getElementsByTag("i").text().trim())
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue