Fix VIZ wrong chapter order. (#12119)
This commit is contained in:
parent
1bab1f6b55
commit
2174c37710
|
@ -6,7 +6,7 @@ ext {
|
||||||
extName = 'VIZ Shonen Jump'
|
extName = 'VIZ Shonen Jump'
|
||||||
pkgNameSuffix = 'en.vizshonenjump'
|
pkgNameSuffix = 'en.vizshonenjump'
|
||||||
extClass = '.VizShonenJump'
|
extClass = '.VizShonenJump'
|
||||||
extVersionCode = 12
|
extVersionCode = 13
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
|
|
@ -157,7 +157,7 @@ class VizShonenJump : ParsedHttpSource() {
|
||||||
?.replace("Created by ", "")
|
?.replace("Created by ", "")
|
||||||
artist = author
|
artist = author
|
||||||
status = SManga.ONGOING
|
status = SManga.ONGOING
|
||||||
description = seriesIntro.select("h4").firstOrNull()?.text()
|
description = seriesIntro.select("div.line-solid").firstOrNull()?.text()
|
||||||
thumbnail_url = mangaFromList?.thumbnail_url ?: ""
|
thumbnail_url = mangaFromList?.thumbnail_url ?: ""
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -181,7 +181,7 @@ class VizShonenJump : ParsedHttpSource() {
|
||||||
|
|
||||||
override fun chapterListSelector() =
|
override fun chapterListSelector() =
|
||||||
"section.section_chapters div.o_sortable > a.o_chapter-container, " +
|
"section.section_chapters div.o_sortable > a.o_chapter-container, " +
|
||||||
"section.section_chapters div.o_sortable div.o_chapter-vol-container tr.o_chapter a.o_chapter-container.pad-r-0"
|
"section.section_chapters div.o_sortable div.o_chapter-vol-container tr.o_chapter a.o_chapter-container"
|
||||||
|
|
||||||
override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
|
override fun chapterFromElement(element: Element): SChapter = SChapter.create().apply {
|
||||||
val isVolume = element.select("div:nth-child(1) table").first() == null
|
val isVolume = element.select("div:nth-child(1) table").first() == null
|
||||||
|
@ -364,7 +364,7 @@ class VizShonenJump : ParsedHttpSource() {
|
||||||
companion object {
|
companion object {
|
||||||
private const val ACCEPT_JSON = "application/json, text/javascript, */*; q=0.01"
|
private const val ACCEPT_JSON = "application/json, text/javascript, */*; q=0.01"
|
||||||
private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " +
|
private const val USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) " +
|
||||||
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36"
|
"AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.63 Safari/537.36"
|
||||||
|
|
||||||
private val DATE_FORMATTER by lazy {
|
private val DATE_FORMATTER by lazy {
|
||||||
SimpleDateFormat("MMMM d, yyyy", Locale.ENGLISH)
|
SimpleDateFormat("MMMM d, yyyy", Locale.ENGLISH)
|
||||||
|
|
Loading…
Reference in New Issue