EarlyManga: fix ghost chapter (#6361)
This commit is contained in:
parent
73481f1817
commit
152b4ca7d8
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'EarlyManga'
|
extName = 'EarlyManga'
|
||||||
pkgNameSuffix = 'en.earlymanga'
|
pkgNameSuffix = 'en.earlymanga'
|
||||||
extClass = '.EarlyManga'
|
extClass = '.EarlyManga'
|
||||||
extVersionCode = 15
|
extVersionCode = 16
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,7 +126,7 @@ class EarlyManga : ParsedHttpSource() {
|
||||||
|
|
||||||
private val paginationNextPageSelector = popularMangaNextPageSelector()
|
private val paginationNextPageSelector = popularMangaNextPageSelector()
|
||||||
|
|
||||||
override fun chapterListSelector() = ".chapter-container > .row:not(:first-child)"
|
override fun chapterListSelector() = ".chapter-container > .row:not(:first-child,.d-none)"
|
||||||
|
|
||||||
override fun chapterFromElement(element: Element) = SChapter.create().apply {
|
override fun chapterFromElement(element: Element) = SChapter.create().apply {
|
||||||
val selectorEncoded1 = "TG1OdmJDro" + "wQWdJQ2NvbEFro" + "wnSUNBZ0lDQWdJQ0FrownSUNj" + "b2xBZ0lDQWdJQ0rowFnSUNBZ0xuSnZkeWN" +
|
val selectorEncoded1 = "TG1OdmJDro" + "wQWdJQ2NvbEFro" + "wnSUNBZ0lDQWdJQ0FrownSUNj" + "b2xBZ0lDQWdJQ0rowFnSUNBZ0xuSnZkeWN" +
|
||||||
|
@ -141,7 +141,11 @@ class EarlyManga : ParsedHttpSource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun parseChapterDate(date: String): Long {
|
private fun parseChapterDate(date: String): Long {
|
||||||
return SimpleDateFormat("yyyy-MM-dd hh:mm:ss", Locale.getDefault()).parse(date)?.time ?: 0L
|
return try {
|
||||||
|
SimpleDateFormat("yyyy-MM-dd hh:mm:ss", Locale.US).parse(date)?.time ?: 0
|
||||||
|
} catch (_: Exception) {
|
||||||
|
0L
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// pages
|
// pages
|
||||||
|
|
Loading…
Reference in New Issue